diff --git a/src/path/PathItem.js b/src/path/PathItem.js index c80fe131..02625505 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -69,11 +69,12 @@ var PathItem = Item.extend(/** @lends PathItem# */{ curves2 = path.getCurves(), matrix1 = this._matrix.orNullIfIdentity(), matrix2 = path._matrix.orNullIfIdentity(), + length1 = curves1.length, length2 = curves2.length, values2 = []; for (var i = 0; i < length2; i++) values2[i] = curves2[i].getValues(matrix2); - for (var i = 0, l = curves1.length; i < l; i++) { + for (var i = 0; i < length1; i++) { var curve1 = curves1[i], values1 = curve1.getValues(matrix1); for (var j = 0; j < length2; j++)