diff --git a/src/item/PlacedItem.js b/src/item/PlacedItem.js index 77d2273e..deb20772 100644 --- a/src/item/PlacedItem.js +++ b/src/item/PlacedItem.js @@ -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; } }); \ No newline at end of file