From 9fe1ff951ae7d72dfd73788718ec3a9da4e76e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 9 Apr 2013 20:36:38 -0700 Subject: [PATCH] Clean up code. --- src/path/Curve.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index dd85dd2a..49b16b73 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -665,11 +665,11 @@ statics: { }); /*#*/ } // See if the parametric equations of the lines interesct. - var line1 = new Line(v1[0], v1[1], v1[6], v1[7], false), - line2 = new Line(v2[0], v2[1], v2[6], v2[7], false), - // Filter out beginnings of the curves, to avoid duplicate - // solutions where curves join. - point = line1.intersect(line2, true, false); + var point = new Line(v1[0], v1[1], v1[6], v1[7], false) + .intersect(new Line(v2[0], v2[1], v2[6], v2[7], false), + // Filter out beginnings of the curves, to avoid + // duplicate solutions where curves join. + true, false); if (point) // Passing null for parameter leads to lazy determination of // parameter values in CurveLocation#getParameter() only