Fixed leaked globals.

Detected using QUnit's "Check for Globals" feature!
This commit is contained in:
Jürg Lehni 2015-07-27 12:36:45 +02:00
parent 4ad8875a8c
commit 10fb616665
2 changed files with 2 additions and 2 deletions

View file

@ -132,7 +132,7 @@ PathItem.inject(new function() {
for (var j = 0; j < 3; j++) {
// Try the points at 1/4, 2/4 and 3/4 of the total length:
var length = totalLength * (j + 1) / 4;
for (k = 0, m = chain.length; k < m; k++) {
for (var k = 0, m = chain.length; k < m; k++) {
var node = chain[k],
curveLength = node.length;
if (length <= curveLength) {