Clean up code a bit.

This commit is contained in:
Jürg Lehni 2012-12-25 18:09:42 +01:00
parent ded73142a9
commit 6b0b6911b4

View file

@ -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;
}
});