mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Clean up code a bit.
This commit is contained in:
parent
ded73142a9
commit
6b0b6911b4
1 changed files with 6 additions and 6 deletions
|
@ -28,11 +28,11 @@ var PlacedItem = this.PlacedItem = Item.extend(/** @lends PlacedItem# */{
|
||||||
_boundsGetter: { getBounds: 'getStrokeBounds' },
|
_boundsGetter: { getBounds: 'getStrokeBounds' },
|
||||||
|
|
||||||
_hitTest: function(point, options, matrix) {
|
_hitTest: function(point, options, matrix) {
|
||||||
var hitResult = this._symbol._definition._hitTest(point, options, matrix);
|
var result = this._symbol._definition._hitTest(point, options, matrix);
|
||||||
// TODO: When the symbol's definition is a path, should hitResult contain
|
// TODO: When the symbol's definition is a path, should hitResult
|
||||||
// information like HitResult#curve?
|
// contain information like HitResult#curve?
|
||||||
if (hitResult)
|
if (result)
|
||||||
hitResult.item = this;
|
result.item = this;
|
||||||
return hitResult;
|
return result;
|
||||||
}
|
}
|
||||||
});
|
});
|
Loading…
Reference in a new issue