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;