Bug Uncaught text can not be null fixed.

This commit is contained in:
Paulo Gustavo Veiga
2012-09-01 11:09:47 -03:00
parent c4f4756e4a
commit 7dfb044ae4
3 changed files with 267 additions and 27 deletions

View File

@@ -20,8 +20,8 @@ mindplot.model.NoteModel = new Class({
Extends:mindplot.model.FeatureModel,
initialize:function (attributes) {
this.parent(mindplot.model.NoteModel.FEATURE_TYPE);
if (attributes.text)
this.setText(attributes.text);
var noteText = attributes.text ? attributes.text : " ";
this.setText(noteText);
},
getText:function () {