after correctly recording objectnode's children, bin/node_coffee --tree is working pretty nicely

This commit is contained in:
Jeremy Ashkenas
2010-02-13 09:46:07 -05:00
parent 785c4fb5a0
commit 8147ef554a
2 changed files with 2 additions and 2 deletions

View File

@@ -550,7 +550,7 @@
ObjectNode = (exports.ObjectNode = inherit(Node, {
type: 'Object',
constructor: function constructor(props) {
this.objects = (this.properties = props || []);
this.children = (this.objects = (this.properties = props || []));
return this;
},
// All the mucking about with commas is to make sure that CommentNodes and