From 29aaf383200a9d5a5128b46cf3c778bbd42b3046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 24 Nov 2011 10:17:31 +0100 Subject: [PATCH] Improve comments. --- src/path/Path.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/path/Path.js b/src/path/Path.js index e7cacbe4..ef3bc910 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1768,9 +1768,11 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ return null; var coords = new Array(6), prevCoords = new Array(6); - // Make coordinates for first segment available in prevCoords. + // If the matrix is an identity transformation, set it to null for + // faster processing if (matrix && matrix.isIdentity()) matrix = null; + // Make coordinates for first segment available in prevCoords. first._transformCoordinates(matrix, prevCoords, false); var min = prevCoords.slice(0, 2), max = min.slice(0), // clone