From e68563af53bf1c1a0a36387dc99d6b6c400566e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 21 Jul 2013 16:26:03 -0700 Subject: [PATCH] Have #insertAbove/Below() return a boolean. --- src/item/Item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/Item.js b/src/item/Item.js index 9fac5fe2..c7cfcde1 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -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); }; }