mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix null exception in Matrix#equals().
This commit is contained in:
parent
f45c04a359
commit
8c33e5be88
1 changed files with 1 additions and 1 deletions
|
@ -505,7 +505,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
|||
* @return {Boolean} {@true if the matrices are equal}
|
||||
*/
|
||||
equals: function(mx) {
|
||||
return this._a == mx._a && this._b == mx._b && this._c == mx._c
|
||||
return mx && this._a == mx._a && this._b == mx._b && this._c == mx._c
|
||||
&& this._d == mx._d && this._tx == mx._tx && this._ty == mx._ty;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue