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

index fea331e..ed4b449 100644 (file)
@@ -333,8 +333,10 @@ ScopeNamer = XObject.define(
                     this.addSymbol(symbol, jsdocTok.jsdoc);
                     var sn = new ScopeNamer(this);
                     print(JSON.stringify(items, null,4));
+                    // ctr statements.
+                    sn.walkStatements(scope + '.prototype', items[0][2].items);
+                    
                     
-                    sn.walkStatements(scope, items[0][2].items);
                     sn.walkObject(scope + '.prototype', false, items[2][0].props );
                     return;