ToolEvent#getItem: replace getter with direct access to internal variable.

This commit is contained in:
Jonathan Puckey 2011-07-14 19:28:25 +02:00
parent cb65399063
commit cb80b828a5

View file

@ -187,7 +187,7 @@ var ToolEvent = this.ToolEvent = Event.extend(/** @lends ToolEvent# */{
while ((parent instanceof Group && !(parent instanceof Layer))
|| parent instanceof CompoundPath) {
item = parent;
parent = parent.getParent();
parent = parent._parent;
}
this._item = item;
}