Have #insertAbove/Below() return a boolean.

This commit is contained in:
Jürg Lehni 2013-07-21 16:26:03 -07:00
parent e0809d26f2
commit e68563af53

View file

@ -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);
};
}