mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Point.read() always returns an object even if nothing is provided, no need to have a default value.
This commit is contained in:
parent
e5198fea40
commit
41dd9eb131
1 changed files with 1 additions and 2 deletions
|
@ -19,8 +19,7 @@ var PointText = this.PointText = TextItem.extend({
|
||||||
|
|
||||||
initialize: function(point) {
|
initialize: function(point) {
|
||||||
this.base();
|
this.base();
|
||||||
point = Point.read(arguments, 0, 1);
|
this._point = Point.read(arguments, 0);
|
||||||
this._point = point || new Point();
|
|
||||||
this.matrix = new Matrix().translate(this._point);
|
this.matrix = new Matrix().translate(this._point);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue