JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 04:33:27 +0000 (12:33 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 04:33:27 +0000 (12:33 +0800)
JSDOC/ScopeParser.js

index cf5c8f7..fb34d64 100644 (file)
@@ -793,6 +793,8 @@ ScopeParser.prototype = {
         var currentScope  = false; 
         var fnScope = false;
         var identifier;
+        var b4braceNesting = this.braceNesting + 0;
+        
         //this.logR("<B>PARSING FUNCTION</B>");
         currentScope = this.scopes[this.scopes.length-1];
 
@@ -899,7 +901,7 @@ ScopeParser.prototype = {
         this.parseScope(fnScope);
         // now pop it off the stack!!!
        
-        this.braceNesting--;
+        this.braceNesting = b4braceNesting;
         
     },