From aac98f2b2524504083529146c1458dfea4056af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 13 May 2014 13:54:31 +0200 Subject: [PATCH] Some code clean-up. --- src/item/Item.js | 1 - src/item/Shape.js | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 1d97d2de..82aac146 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -3645,7 +3645,6 @@ var Item = Base.extend(Callback, /** @lends Item# */{ && this._canComposite(), pixelRatio = param.pixelRatio, mainCtx, itemOffset, prevOffset; - if (!direct) { // Apply the parent's global matrix to the calculation of correct // bounds. diff --git a/src/item/Shape.js b/src/item/Shape.js index 1dd6f1dd..519b17e1 100644 --- a/src/item/Shape.js +++ b/src/item/Shape.js @@ -206,7 +206,7 @@ var Shape = Item.extend(/** @lends Shape# */{ cx = rx * kappa, cy = ry * kappa, // Build the coordinates list, so it can optionally be - // transformed by a matrix. + // transformed by the strokeMatrix. c = [ -x, -y + ry, -x, -y + cy, @@ -227,8 +227,6 @@ var Shape = Item.extend(/** @lends Shape# */{ ]; if (strokeMatrix) strokeMatrix.transform(c, c, 32); - if (!param.dontStart) - ctx.beginPath(); ctx.moveTo(c[0], c[1]); ctx.bezierCurveTo(c[2], c[3], c[4], c[5], c[6], c[7]); if (x !== rx)