mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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++)
|
||||
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++) {
|
||||
|
|
Loading…
Reference in a new issue