From 4c94553b816d5d12d8b9a5c122546ef535a3dcbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 13 Jun 2016 09:00:29 +0200 Subject: [PATCH] Minor cleanup. --- src/path/CurveLocation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/CurveLocation.js b/src/path/CurveLocation.js index 15976e81..ac523485 100644 --- a/src/path/CurveLocation.js +++ b/src/path/CurveLocation.js @@ -449,7 +449,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{ } // Calculate unambiguous angles for all 4 tangents at the intersection: - // - If the intersection is inside a curve (t1 / t2Inside), the tangent + // - If the intersection is inside a curve (t1 / t2Inside), the tangent // at t1 / t2 is unambiguous, because the curve is continuous. // - If the intersection is on a segment, step away at equal offsets on // each curve, to calculate unambiguous angles. The vector from the @@ -464,7 +464,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{ if (!t2Inside) lenghts.push(c3.getLength(), c4.getLength()); var pt = this.getPoint(), - offset = Math.min.apply(null, lenghts) / 64, + offset = Math.min.apply(Math, lenghts) / 64, v2 = t1Inside ? c2.getTangentAtTime(t1) : c2.getPointAt(offset).subtract(pt), v1 = t1Inside ? v2.negate()