mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Merge remote branch 'origin/master'
This commit is contained in:
commit
69d7e026ba
1 changed files with 1 additions and 1 deletions
|
@ -1413,8 +1413,8 @@ var Item = this.Item = Base.extend({
|
|||
* @param {Item} item The item that will be appended as a child
|
||||
*/
|
||||
insertChild: function(index, item) {
|
||||
item._removeFromParent();
|
||||
if (this._children) {
|
||||
item._removeFromParent();
|
||||
Base.splice(this._children, [item], index, 0);
|
||||
item._parent = this;
|
||||
item._setProject(this._project);
|
||||
|
|
Loading…
Reference in a new issue