From 6b0b6911b47480676e6644c88d91220ca996999d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 25 Dec 2012 18:09:42 +0100 Subject: [PATCH] Clean up code a bit. --- src/item/PlacedItem.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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