From 93cacffd0638e771fa1bbe16123f4c6b66a753fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 5 Oct 2015 10:56:29 +0200 Subject: [PATCH] Improve comments describing isValid() calls. --- src/path/PathItem.Boolean.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index fd20bffe..5e99300d 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -607,11 +607,11 @@ PathItem.inject(new function() { // since an overlap crossing might have brought us here, // in which case isValid(seg, false) might be false. || (!strict || isValid(seg, true)) - // Even if next segment is not valid, its to which - // we may switch might be, so count that too! - && (isValid(nextSeg, !strict && inter._overlap) - || nextInter && isValid(nextInter._segment, - !strict && nextInter._overlap)) + // Even if next segment is not valid, its intersection + // to which we may switch might be, so count that too! + && (isValid(nextSeg, !strict && inter._overlap) + || nextInter && isValid(nextInter._segment, + !strict && nextInter._overlap)) ) ? inter // If it's no match, check the next linked intersection first,