JSDOC/ScopeNamer.js
authorAlan Knowles <alan@roojs.com>
Wed, 23 Nov 2011 04:35:18 +0000 (12:35 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 23 Nov 2011 04:35:18 +0000 (12:35 +0800)
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;