From 2249f0922302269feb99e3fabf8443bc69a9358c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 26 Dec 2011 11:16:16 +0100 Subject: [PATCH] Minor code clean up. No need to set reference again, since we're directly modifying it. --- src/item/Item.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 616398b7..7ff847fd 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -1830,8 +1830,7 @@ function(name) { // Calling _changed will clear _bounds and _position, but depending // on matrix we can calculate and set them again. var bounds = this._bounds, - position = this._position, - children = this._children; + position = this._position; // Simply preconcatenate the internal matrix with the passed one: this._matrix.preConcatenate(matrix); if (this._transform) @@ -1849,7 +1848,7 @@ function(name) { // in _bounds and transform each. for (var key in bounds) { var rect = bounds[key]; - bounds[key] = matrix._transformBounds(rect, rect); + matrix._transformBounds(rect, rect); } // If we have cached 'bounds', update _position again as its // center. We need to take into account _boundsType here too, in