Skip to content

Commit

Permalink
Minor simplification.
Browse files Browse the repository at this point in the history
  • Loading branch information
lehni committed Sep 23, 2015
1 parent 515d4ff commit cf5bf38
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/path/PathItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
);
}
Expand Down

0 comments on commit cf5bf38

Please sign in to comment.