Fix a bug in CompoundPath#hitTest().

Results from Path#hitTest() were not passed through.
This commit is contained in:
Jürg Lehni 2013-02-24 14:56:28 -08:00
parent 17b81f5f67
commit 0a81787c7e

View file

@ -152,9 +152,9 @@ var CompoundPath = this.CompoundPath = PathItem.extend(/** @lends CompoundPath#
_hitTest: function(point, options) {
return this.base(point, Base.merge(options, { fill: false }))
|| options.fill && this._style._fillColor && this.contains(point)
|| (options.fill && this._style._fillColor && this.contains(point)
? new HitResult('fill', this)
: null;
: null);
},
draw: function(ctx, param) {