JSDOC/ScopeNamer.js
authorAlan Knowles <alan@roojs.com>
Thu, 13 Oct 2011 14:26:50 +0000 (22:26 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 13 Oct 2011 14:26:50 +0000 (22:26 +0800)
JSDOC/ScopeNamer.js

index 5f5a575..2f1a835 100644 (file)
@@ -301,7 +301,11 @@ ScopeNamer = XObject.define(
                     
                     if (token.props) {
                         var t;
-                        var sn = false;
+                        var sn =  new ScopeNamer({
+                            filename : filename,
+                            pscope : pscope,
+                            args : args
+                        });
                         var isStatic = false;
                        
                         for( var k in token.props) {
@@ -332,7 +336,8 @@ ScopeNamer = XObject.define(
                                 sn.walk();
                                 
                             } else { 
-                                sn = new ScopeNamer(t.val, filename,  pscope+'|'+ k, args);
+                                
+                                    }t.val, filename,  pscope+'|'+ k, args);
                             }
                             // we can add key value now..
                             //print(k + ': ' + JSON.stringify(t.val, null,4));