JSDOC/ScopeNamer.js
[app.jsdoc] / 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..
                             
                         }