From cf5bf38c3b471c8e299a22d66b0a52199fa8cebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 23 Sep 2015 13:33:35 -0400 Subject: [PATCH] Minor simplification. --- src/path/PathItem.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/path/PathItem.js b/src/path/PathItem.js index 277d38fb..45a38318 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -132,15 +132,13 @@ var PathItem = Item.extend(/** @lends PathItem# */{ // self intersecting. Curve.getIntersections( values1, values2[j], curve1, curve2, locations, - self ? { + { include: include, // Do not compare indices here to determine connection, // since one array of curves can contain curves from // separate sup-paths of a compound path. - startConnected: curve1.getPrevious() === curve2, - endConnected: curve1.getNext() === curve2 - } : { - include: include + startConnected: self && curve1.getPrevious() === curve2, + endConnected: self && curve1.getNext() === curve2 } ); }