From 41dd9eb1315f1e158a643ada4301c2864262962e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 17 May 2011 13:10:57 +0100 Subject: [PATCH] Point.read() always returns an object even if nothing is provided, no need to have a default value. --- src/text/PointText.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/text/PointText.js b/src/text/PointText.js index 369ba428..cab7a0d8 100644 --- a/src/text/PointText.js +++ b/src/text/PointText.js @@ -19,8 +19,7 @@ var PointText = this.PointText = TextItem.extend({ initialize: function(point) { this.base(); - point = Point.read(arguments, 0, 1); - this._point = point || new Point(); + this._point = Point.read(arguments, 0); this.matrix = new Matrix().translate(this._point); },