From da2caa999e79f59a8b41bdcf9b4b94acc94c9540 Mon Sep 17 00:00:00 2001 From: sapics Date: Sat, 11 Jul 2015 18:31:03 +0900 Subject: [PATCH] item.setMatrix useful --- src/item/Item.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 67c84193..f7ecf013 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -1130,9 +1130,9 @@ var Item = Base.extend(Emitter, /** @lends Item# */{ return this._matrix; }, - setMatrix: function(matrix) { + setMatrix: function() { // Use Matrix#initialize to easily copy over values. - this._matrix.initialize(matrix); + this._matrix.initialize.apply(this._matrix, arguments); if (this._applyMatrix) { // Directly apply the internal matrix. This will also call // _changed() for us.