Use #addChildren() instead of #setChildren() in Group constructor.

This commit is contained in:
Jürg Lehni 2011-06-19 22:05:31 +01:00
parent 2594a41b7d
commit bfe229ae14

View file

@ -70,7 +70,7 @@ var Group = this.Group = Item.extend({
// Allow Group to have children and named children
this._children = [];
this._namedChildren = {};
this.setChildren(!items || !Array.isArray(items)
this.addChildren(!items || !Array.isArray(items)
|| typeof items[0] !== 'object' ? arguments : items);
},