From 783d2782c097264aea173140231bf0c4df524394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 25 Dec 2011 16:38:43 +0100 Subject: [PATCH] Fix wrong HitResult type when hitting Segment#point. --- src/path/Path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Path.js b/src/path/Path.js index bad2a599..d70a64a9 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1274,7 +1274,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ // Note, when checking for ends, we don't also check for handles, // since this will happen afterwards in a separate loop, see below. return (ends || options.segments) - && checkPoint(seg, point, 'point') + && checkPoint(seg, point, 'segment') || (!ends && options.handles) && ( checkPoint(seg, point.add(seg._handleIn), 'handle-in') || checkPoint(seg, point.add(seg._handleOut), 'handle-out'));