From 58a1e9d6078da0a15d038c662d90ab0f6bb9b4e5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 15 Jul 2010 16:31:40 +0800 Subject: [PATCH] JSDOC/ScopeParser.js --- JSDOC/ScopeParser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 45943b4..74d0549 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -224,7 +224,7 @@ ScopeParser.prototype = { var isObjectLitAr = [ false ]; var isInObjectLitAr; thisScope = scope; - if (thisScope) { + if (thisScope && thisScope.gid != this.scopes[this.scopes.length-1]) { this.scopes.push(scope); } else { thisScope = this.scopes[this.scopes.length-1] @@ -905,6 +905,7 @@ ScopeParser.prototype = { _this.ts = new TokenStream(tar); _this.parseScope(fnScope); + }); //print(JSON.stringify(this.ts,null,4)); -- 2.39.2