mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Fix Layer#isInserted() for nested Layers.
This commit is contained in:
parent
0c114883e1
commit
885d75296d
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ var Layer = this.Layer = Group.extend(/** @lends Layer# */{
|
||||||
},
|
},
|
||||||
|
|
||||||
isInserted: function() {
|
isInserted: function() {
|
||||||
return this._index != null;
|
return this._parent ? this.base() : this._index != null;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue