diff --git a/src/path/Curve.js b/src/path/Curve.js index 9e4fc296..7030c9a5 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -693,7 +693,7 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{ for (var i = 0; i <= degree; i++) w[i] = new Point(i / degree, 0); - for (k = 0; k <= degree; k++) { + for (var k = 0; k <= degree; k++) { var lb = Math.max(0, k - n + 1), ub = Math.min(k, n); for (var i = lb; i <= ub; i++) {