From e17a12e64a839beba8e94fd3fe14c5407f7875b1 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 23 Nov 2011 12:35:18 +0800 Subject: [PATCH] JSDOC/ScopeNamer.js --- JSDOC/ScopeNamer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JSDOC/ScopeNamer.js b/JSDOC/ScopeNamer.js index 647bdb8..82e3b90 100644 --- a/JSDOC/ScopeNamer.js +++ b/JSDOC/ScopeNamer.js @@ -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; -- 2.39.2