mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-20 10:52:18 -04: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…
Add table
Add a link
Reference in a new issue