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..
}