JSDOC/ScopeNamer.js
[app.jsdoc] / JSDOC / ScopeNamer.js
index 647bdb8..82e3b90 100644 (file)
@@ -138,7 +138,7 @@ ScopeNamer = XObject.define(
             this.debugCall("walkStatements :" + scope ) ;            
             var _this = this;
             var res = false;
-            var isGlobal = scope == '_global_';
+            var isGlobal = scope == this.global;
            
             statements.some(function(st ) {
                 // handle change of scope..
@@ -174,7 +174,7 @@ ScopeNamer = XObject.define(
             var name;
             var sn;
             
-            var isGlobal = scope == '_global_';
+            var isGlobal = scope == this.global = scope;