Fix Item#isChild(item).

This commit is contained in:
Jürg Lehni 2011-05-28 21:06:30 +01:00
parent de9378f5c6
commit 6aac2b3e67

View file

@ -643,7 +643,7 @@ var Item = this.Item = Base.extend({
* @return {boolean} {@true it is a child of the item} * @return {boolean} {@true it is a child of the item}
*/ */
isChild: function(item) { isChild: function(item) {
return item._parent == this; return item && item._parent == this;
}, },
/** /**