Add _dontNotify parameter to Matrix#reset() and use it in Item#applyMatrix()

This commit is contained in:
Jürg Lehni 2014-01-06 00:18:40 +01:00
parent 1f55ec4349
commit 5a131930fb
2 changed files with 4 additions and 3 deletions
src/basic

View file

@ -140,10 +140,11 @@ var Matrix = Base.extend(/** @lends Matrix# */{
* "Resets" the matrix by setting its values to the ones of the identity
* matrix that results in no transformation.
*/
reset: function() {
reset: function(_dontNotify) {
this._a = this._d = 1;
this._c = this._b = this._tx = this._ty = 0;
this._changed();
if (!_dontNotify)
this._changed();
return this;
},