JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 07:55:42 +0000 (15:55 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 07:55:42 +0000 (15:55 +0800)
JSDOC/ScopeParser.js

index 9701de0..c8ed336 100644 (file)
@@ -223,7 +223,10 @@ ScopeParser.prototype = {
         
         var isObjectLitAr = [ false ];
         var isInObjectLitAr;
-        this.scopes.push(scope);
+        if (scope) {
+            this.scopes.push(scope);
+        }
+        
        
         //var scopeIndent = ''; 
         //this.scopes.forEach(function() {