mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-22 19:58:52 -04:00
Initialise content to empty string, so content += 'something' would not produce odd results.
This commit is contained in:
parent
e7cad9b134
commit
4ceaca00f4
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ var PointText = this.PointText = TextItem.extend({
|
||||||
initialize: function(point) {
|
initialize: function(point) {
|
||||||
this.base();
|
this.base();
|
||||||
var point = Point.read(arguments);
|
var point = Point.read(arguments);
|
||||||
|
this.content = '';
|
||||||
this._point = LinkedPoint.create(this, 'setPoint', point.x, point.y);
|
this._point = LinkedPoint.create(this, 'setPoint', point.x, point.y);
|
||||||
this.matrix = new Matrix().translate(point);
|
this.matrix = new Matrix().translate(point);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue