From c4c5b070b5d8fae3eda4e333f722b39fb18210b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 7 Mar 2011 16:51:12 +0000 Subject: [PATCH] Minor code clean-up. --- src/path/Curve.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/path/Curve.js b/src/path/Curve.js index fab892c9..e508271e 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -212,6 +212,7 @@ var Curve = this.Curve = Base.extend({ + ' }'; } }, new function() { + function evaluate(that, t, type) { // Calculate the polynomial coefficients. caution: handles are relative // to points @@ -269,6 +270,7 @@ var Curve = this.Curve = Base.extend({ // the x and y coordinates: x = (3 * ax * t + 2 * bx) * t + cx, y = (3 * ay * t + 2 * by) * t + cy; + break; } } // The normal is simply the rotated tangent: