From d7a4dd27803f9c8d71287041f61626a24e357a8a Mon Sep 17 00:00:00 2001 From: sapics Date: Fri, 3 Jul 2015 10:00:57 +0900 Subject: [PATCH] rect -> rectangle --- src/item/Shape.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/Shape.js b/src/item/Shape.js index ff3f06af..69c033e3 100644 --- a/src/item/Shape.js +++ b/src/item/Shape.js @@ -203,7 +203,7 @@ var Shape = Item.extend(/** @lends Shape# */{ size = this._size, width = size.width, height = size.height; - if (untransformed && type === 'rect' && rx === 0 && ry === 0) { + if (untransformed && type === 'rectangle' && rx === 0 && ry === 0) { // Rectangles with no rounding ctx.rect(-width / 2, -height / 2, width, height); } else {