From 6aac2b3e6749a885692d1882901157f3a2355b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 28 May 2011 21:06:30 +0100 Subject: [PATCH] Fix Item#isChild(item). --- 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 2cb5d4e3..fd2f7bc9 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -643,7 +643,7 @@ var Item = this.Item = Base.extend({ * @return {boolean} {@true it is a child of the item} */ isChild: function(item) { - return item._parent == this; + return item && item._parent == this; }, /**