From 12f12da21b851e762b06ebeec7ea9eb08bc26283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 15 Jan 2017 18:53:23 +0100 Subject: [PATCH] Minor code cleanup. --- src/path/CurveLocation.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/path/CurveLocation.js b/src/path/CurveLocation.js index 702ed7e5..3c0c93b4 100644 --- a/src/path/CurveLocation.js +++ b/src/path/CurveLocation.js @@ -327,9 +327,9 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{ // necessary to avoid issues wit CURVETIME_EPSILON imprecisions. var abs = Math.abs, epsilon = /*#=*/Numerical.GEOMETRIC_EPSILON, + diff = abs(this.getOffset() - loc.getOffset()), i1 = !_ignoreOther && this._intersection, - i2 = !_ignoreOther && loc._intersection, - diff = abs(this.getOffset() - loc.getOffset()); + i2 = !_ignoreOther && loc._intersection; res = (diff < epsilon || p1 && abs(p1.getLength() - diff) < epsilon) // Compare the the other location, but prevent endless @@ -360,7 +360,6 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{ return '{ ' + parts.join(', ') + ' }'; }, - /** * {@grouptitle Tests} * Checks if the location is an intersection with another curve and is