mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Prevent variable leackage.
This commit is contained in:
parent
b9a07ca538
commit
041c31a88a
1 changed files with 2 additions and 1 deletions
|
@ -1653,7 +1653,8 @@ new function() { // Scope for methods that require private functions
|
|||
// Merge intersections very close to the end of a curve to the
|
||||
// beginning of the next curve.
|
||||
for (var i = last; i >= 0; i--) {
|
||||
var loc = locations[i];
|
||||
var loc = locations[i],
|
||||
next;
|
||||
if (loc._parameter >= tMax && (next = loc._curve.getNext())) {
|
||||
loc._parameter = 0;
|
||||
loc._curve = next;
|
||||
|
|
Loading…
Reference in a new issue