mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Fix k leaking into globals
This commit is contained in:
parent
dc1161b32a
commit
73d6c102a6
1 changed files with 1 additions and 1 deletions
|
@ -693,7 +693,7 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{
|
||||||
for (var i = 0; i <= degree; i++)
|
for (var i = 0; i <= degree; i++)
|
||||||
w[i] = new Point(i / degree, 0);
|
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),
|
var lb = Math.max(0, k - n + 1),
|
||||||
ub = Math.min(k, n);
|
ub = Math.min(k, n);
|
||||||
for (var i = lb; i <= ub; i++) {
|
for (var i = lb; i <= ub; i++) {
|
||||||
|
|
Loading…
Reference in a new issue