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

index 069bac4..1a2b9cf 100644 (file)
@@ -214,11 +214,12 @@ ScopeParser.prototype = {
                     while (true) {
                         token = this.ts.nextTok();
                         
-                        if (token.name != "VAR") { // kludge..
-                            continue;
-                        }
+                      
                         if (!token) { // can return false at EOF!
                             break;
+                        }
+                          if (token.name != "VAR") { // kludge..
+                            continue;
                         }
                         //this.logR("parseScope GOT VAR  : <B>" + token.toString() + "</B>"); 
                         if (token.type !="NAME") {