Fix Layer#isInserted() for nested Layers.

This commit is contained in:
Jürg Lehni 2013-04-22 22:47:48 -07:00
parent 0c114883e1
commit 885d75296d

View file

@ -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;
}, },
/** /**