JSDOC/ScopeNamer.js master
authorAlan Knowles <alan@roojs.com>
Sun, 27 Nov 2011 15:10:29 +0000 (23:10 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 27 Nov 2011 15:10:29 +0000 (23:10 +0800)
JSDOC/ScopeNamer.js

index 3e5b353..9576663 100644 (file)
@@ -439,9 +439,12 @@ ScopeNamer = XObject.define(
                 
                     if (token.data == 'new' && !isVar && name) {
                         var mname = this.lookTok(1).data;
-                        var args = this.lookTok(2).items;
+                        var args = this.lookTok(2).items; // ( 
                         
                         if (args[0].data == '{') {
+                            
+                            this.walkObject( scope +'.'+ name, false, args[0].props, false);
+                            
                             // have a go at applying the properties..
                             
                         }