mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Fix Item#isChild(item).
This commit is contained in:
parent
de9378f5c6
commit
6aac2b3e67
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue