JSDOC/ScopeParser.js
authoralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 08:07:11 +0000 (16:07 +0800)
committeralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 08:07:11 +0000 (16:07 +0800)
JSDOC/ScopeParser.js

index b888c6a..a704f25 100644 (file)
@@ -466,7 +466,7 @@ ScopeParser.prototype = {
         var expressionBraceNesting = this.braceNesting;
         var bracketNesting = 0;
         var parensNesting = 0;
-
+        var isInObjectLitAr;
         var isObjectLitAr = [ false ];
         while (token = this.ts.lookTok()) {
      
@@ -532,7 +532,7 @@ ScopeParser.prototype = {
                     
                     
                      
-                    var isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1];
+                    isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1];
                     if (isInObjectLitAr &&  this.ts.lookTok(1).data == ":"  &&
                         ( this.ts.lookTok(-1).data == "{"  ||  this.ts.lookTok(-1).data == "," )) {
                         // see if we can replace..
@@ -559,7 +559,7 @@ ScopeParser.prototype = {
                         isObjectLitAr.push(true);
                         break;
                     }
-                    var isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1];
+                    isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1];
                     if (isInObjectLitAr && this.ts.lookTok(-1).data == "," && this.ts.lookTok(1).data == ":") {
                         break;
                     }