Initialise content to empty string, so content += 'something' would not produce odd results.

This commit is contained in:
Jürg Lehni 2011-05-20 08:46:58 +01:00
parent e7cad9b134
commit 4ceaca00f4

View file

@ -20,6 +20,7 @@ var PointText = this.PointText = TextItem.extend({
initialize: function(point) {
this.base();
var point = Point.read(arguments);
this.content = '';
this._point = LinkedPoint.create(this, 'setPoint', point.x, point.y);
this.matrix = new Matrix().translate(point);
},