mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Remove global variable leakage.
This commit is contained in:
parent
e6bed426d7
commit
f56794bad4
1 changed files with 1 additions and 1 deletions
|
@ -1437,7 +1437,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
||||||
_hitTest: function(point, options) {
|
_hitTest: function(point, options) {
|
||||||
if (this._children) {
|
if (this._children) {
|
||||||
// Loop backwards, so items that get drawn last are tested first
|
// Loop backwards, so items that get drawn last are tested first
|
||||||
for (var i = this._children.length - 1; i >= 0; i--)
|
for (var i = this._children.length - 1, res; i >= 0; i--)
|
||||||
if (res = this._children[i].hitTest(point, options))
|
if (res = this._children[i].hitTest(point, options))
|
||||||
return res;
|
return res;
|
||||||
} else if (this.hasFill() && this._contains(point)) {
|
} else if (this.hasFill() && this._contains(point)) {
|
||||||
|
|
Loading…
Reference in a new issue