From 6b4917f4a898a0673e4f9e7571f0f0b5931adb54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 17 Dec 2013 15:23:07 +0100 Subject: [PATCH] Clean up code a bit. --- src/path/PathItem.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++)