mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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' },
|
||||
|
||||
_hitTest: function(point, options, matrix) {
|
||||
var hitResult = this._symbol._definition._hitTest(point, options, matrix);
|
||||
// TODO: When the symbol's definition is a path, should hitResult contain
|
||||
// information like HitResult#curve?
|
||||
if (hitResult)
|
||||
hitResult.item = this;
|
||||
return hitResult;
|
||||
var result = this._symbol._definition._hitTest(point, options, matrix);
|
||||
// TODO: When the symbol's definition is a path, should hitResult
|
||||
// contain information like HitResult#curve?
|
||||
if (result)
|
||||
result.item = this;
|
||||
return result;
|
||||
}
|
||||
});
|
Loading…
Reference in a new issue