diff --git a/src/item/Item.js b/src/item/Item.js index a8ad9b25..7e210f86 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -1773,7 +1773,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{ }, _getChildHitTestOptions: function(options) { - // This is overriden in CompoundPath, for treatment of type === 'path'. + // This is overridden in CompoundPath, for treatment of type === 'path'. return options; }, diff --git a/src/path/CompoundPath.js b/src/path/CompoundPath.js index 00dff421..cf88db32 100644 --- a/src/path/CompoundPath.js +++ b/src/path/CompoundPath.js @@ -236,9 +236,9 @@ var CompoundPath = PathItem.extend(/** @lends CompoundPath# */{ }, /** @lends CompoundPath# */{ _getChildHitTestOptions: function(options) { // If we're not specifically asked to returns paths through - // options.type == 'path' do not test children for fill, since a - // compound path forms one shape. - return options.type === 'path' + // options.type == Path, do not test children for fill, since a + // compound path forms one shape. Also support legacy format 'path' + return options.type === Path || typeof type === 'path' ? options : new Base(options, { fill: false }); },