Point.read() always returns an object even if nothing is provided, no need to have a default value.

This commit is contained in:
Jürg Lehni 2011-05-17 13:10:57 +01:00
parent e5198fea40
commit 41dd9eb131

View file

@ -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);
},