From 8c33e5be88ad53196f4ee4a9480d624be78f7bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 27 Dec 2012 13:04:21 +0100 Subject: [PATCH] Fix null exception in Matrix#equals(). --- src/basic/Matrix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/Matrix.js b/src/basic/Matrix.js index d7a91c91..3a6f5a49 100644 --- a/src/basic/Matrix.js +++ b/src/basic/Matrix.js @@ -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; },