From e2c77a866dfcdd2b27a9dce15604567f57ae868f Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 12 Feb 2011 19:45:11 +0100 Subject: [PATCH] Nullify path parent when removed. --- 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 e2e78d62..66e4ce61 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -5,7 +5,6 @@ Item = Base.extend({ this.parent.children.push(this); }, - /** * When passed a document, copies the item to the document, * or duplicates it within the same document. When passed an item, @@ -185,6 +184,7 @@ Item = Base.extend({ removeFromParent: function() { if(this.parent) this.parent.children.splice(this.index, 1); + this.parent = null; }, /**