mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Have #insertAbove/Below() return a boolean.
This commit is contained in:
parent
e0809d26f2
commit
e68563af53
1 changed files with 1 additions and 1 deletions
|
@ -1606,7 +1606,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
||||||
// the index needs to be adjusted accordingly.
|
// the index needs to be adjusted accordingly.
|
||||||
if (item._parent === this._parent && index > this._index)
|
if (item._parent === this._parent && index > this._index)
|
||||||
index--;
|
index--;
|
||||||
return item._parent.insertChild(index, this, _preserve);
|
return !!item._parent.insertChild(index, this, _preserve);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue