From 79f55aa90885083d7d03ef5c5586f41680cdb64a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 7 May 2011 15:41:07 +0100 Subject: [PATCH] Fix recently introduce error in append(). --- src/item/Item.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/item/Item.js b/src/item/Item.js index c8c0429b..2278d3af 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -810,7 +810,8 @@ var Item = this.Item = Base.extend({ function append(top) { return function(item) { - if (this.children && item._removeFromParent()) { + item._removeFromParent(); + if (this.children) { this.children.splice(top ? this.children.length : 0, 0, item); // TODO: Reassign _index item.parent = this;