diff --git a/src/document/Document.js b/src/document/Document.js index 9a2d325c..76856ff4 100644 --- a/src/document/Document.js +++ b/src/document/Document.js @@ -118,7 +118,7 @@ var Document = this.Document = Base.extend({ remove: function() { var res = Base.splice(this._scope.documents, null, this._index, 1); - this._scope = this._index = null; + this._scope = null; return !!res.length; }, diff --git a/src/item/Item.js b/src/item/Item.js index 1784bb5b..fffd429b 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -289,7 +289,7 @@ var Item = this.Item = Base.extend({ if (this._name) this._removeFromNamed(); var res = Base.splice(this._parent._children, null, this._index, 1); - this._parent = this._index = null; + this._parent = null; return !!res.length; } return false;