mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
ToolEvent#getItem: replace getter with direct access to internal variable.
This commit is contained in:
parent
cb65399063
commit
cb80b828a5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue