From a21d18015000e8f8dd19830aad606810b6e04ac4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrg=20Lehni?= <juerg@scratchdisk.com>
Date: Tue, 20 Dec 2011 23:32:53 +0100
Subject: [PATCH] Use faster Point.create().

---
 src/basic/Matrix.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/basic/Matrix.js b/src/basic/Matrix.js
index 152bf904..875d014c 100644
--- a/src/basic/Matrix.js
+++ b/src/basic/Matrix.js
@@ -106,6 +106,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
 	setIdentity: function() {
 		this._a = this._d = 1;
 		this._c = this._b = this._tx = this._ty = 0;
+		return this;
 	},
 
 	/**
@@ -472,13 +473,13 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
 	},
 
 	getTranslation: function() {
-		return new Point(this._tx, this._ty);
+		return Point.create(this._tx, this._ty);
 	},
 
 	getScaling: function() {
 		var hor = Math.sqrt(this._a * this._a + this._c * this._c),
 			ver = Math.sqrt(this._b * this._b + this._d * this._d);
-		return new Point(this._a < 0 ? -hor : hor, this._b < 0 ? -ver : ver);
+		return Point.create(this._a < 0 ? -hor : hor, this._b < 0 ? -ver : ver);
 	},
 
 	/**