mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Use #addChildren() instead of #setChildren() in Group constructor.
This commit is contained in:
parent
2594a41b7d
commit
bfe229ae14
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue