Skip to content

Commit 885d752

Browse files
committed
Fix Layer#isInserted() for nested Layers.
1 parent 0c11488 commit 885d752

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/item/Layer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var Layer = this.Layer = Group.extend(/** @lends Layer# */{
9393
},
9494

9595
isInserted: function() {
96-
return this._index != null;
96+
return this._parent ? this.base() : this._index != null;
9797
},
9898

9999
/**

0 commit comments

Comments
 (0)