JSDOC/ScopeNamer.js
authorAlan Knowles <alan@roojs.com>
Wed, 23 Nov 2011 03:14:56 +0000 (11:14 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 23 Nov 2011 03:14:56 +0000 (11:14 +0800)
JSDOC/ScopeNamer.js

index 87b856d..6c5eb05 100644 (file)
@@ -156,8 +156,13 @@ ScopeNamer = XObject.define(
             
             var isGlobal = scope == '_global_';
             
+            
+            
+            if (this.filename.match(/pack\.js/) && isGlobal) {
+                print(JSON.stringify(stmt[0].jsdoc, null,4));
+            }
             // @ignore stops the parser..
-            if (scope == '_global_' &&
+            if (isGlobal &&
                     stmt[0].jsdoc &&
                     stmt[0].jsdoc.getTag('ignore').length
                ) {