Fix k leaking into globals

This commit is contained in:
Ben Firshman 2012-08-07 17:10:53 +01:00
parent dc1161b32a
commit 73d6c102a6

View file

@ -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++) {