diff --git a/src/item/HitResult.js b/src/item/HitResult.js index 614d84a9..b651843c 100644 --- a/src/item/HitResult.js +++ b/src/item/HitResult.js @@ -109,8 +109,8 @@ var HitResult = Base.extend(/** @lends HitResult# */{ // Use _merged property to not repeatetly merge using new Base in // recursion. return options && options._merged ? options : new Base({ - // Type of item, for instanceof check: 'group', 'layer', 'path', - // 'compound-path', 'shape','raster', 'placed-symbol', ... + // Type of item, for instanceof check: Group, Layer, Path, + // CompoundPath, Shape, Raster, PlacedSymbol, ... type: null, // Tolerance tolerance: paper.settings.hitTolerance, diff --git a/src/item/PlacedSymbol.js b/src/item/PlacedSymbol.js index 38b03a1e..2241d0c7 100644 --- a/src/item/PlacedSymbol.js +++ b/src/item/PlacedSymbol.js @@ -116,7 +116,7 @@ var PlacedSymbol = Item.extend(/** @lends PlacedSymbol# */{ }, _hitTest: function(point, options) { - var res = this._symbol._definition._hitTest(point, options); + var res = this._symbol._definition.hitTest(point, options); // TODO: When the symbol's definition is a path, should hitResult // contain information like HitResult#curve? if (res)