JSDOC/Walker2.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 09:13:19 +0000 (17:13 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 09:13:19 +0000 (17:13 +0800)
JSDOC/Walker2.js

index 6df4efe..df3e793 100644 (file)
@@ -661,12 +661,14 @@ Walker2 = XObject.define(
                             
                             scopeName = this.ts.look(-2).data;
                             scopeName = fixAlias(scopeName);
-                            var fnScope = new Scope(this.braceNesting, scope, token.n, 
-                                '$this$='+scopeName + '|'+scopeName
-                            );
-                            this.indexedScopes[this.ts.cursor] = fnScope;
-                            scope = fnScope;
-                            this.scopesIn(fnScope);
+                            //var fnScope = new Scope(this.braceNesting, scope, token.n, 
+                            //    '$this$='+scopeName + '|'+scopeName
+                            //);
+                            
+                            //this.indexedScopes[this.ts.cursor] = fnScope;
+                            //scope = fnScope;
+                            // push the same scope onto the stack..
+                            this.scopesIn(this.scopes[this.scopes.length-1]);
                             
                               
                             locBraceNest++;