From 87420945404fddd653b996c04e0588e69101c310 Mon Sep 17 00:00:00 2001 From: Mark Costello Date: Wed, 14 Dec 2016 21:58:58 -0500 Subject: [PATCH] Prefix generated static variables to avoid reserved keyword clashing --- cli/targets/static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/targets/static.js b/cli/targets/static.js index 826c76a02..983899c7d 100644 --- a/cli/targets/static.js +++ b/cli/targets/static.js @@ -101,7 +101,7 @@ function buildNamespace(ref, ns) { "@exports " + ns.fullName.substring(1), "@namespace" ]); - push("var " + name(ns.name) + " = {};"); + push("var $" + name(ns.name) + " = {};"); } ns.nestedArray.forEach(function(nested) {