mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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) {
|
||||
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);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue