Fix recently introduce error in append().

This commit is contained in:
Jürg Lehni 2011-05-07 15:41:07 +01:00
parent 999fb129cc
commit 79f55aa908

View file

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