mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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.
|
||||
if (item._parent === this._parent && index > this._index)
|
||||
index--;
|
||||
return item._parent.insertChild(index, this, _preserve);
|
||||
return !!item._parent.insertChild(index, this, _preserve);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue