Fix notes text exception loading beta maps.

This commit is contained in:
Paulo Gustavo Veiga 2012-06-23 17:10:58 -03:00
parent ee93a8f7ab
commit 63113a529d

View File

@ -285,7 +285,8 @@ mindplot.persistence.XMLSerializer_Beta = new Class({
},
_deserializeNote : function(domElem, topic) {
return mindplot.TopicFeature.createModel(mindplot.TopicFeature.Note.id, topic, {text:domElem.getAttribute("url")});
var text = domElem.getAttribute("text");
return mindplot.TopicFeature.createModel(mindplot.TopicFeature.Note.id, topic, {text:text == null ? " " : text});
}});
mindplot.persistence.XMLSerializer_Beta.MAP_ROOT_NODE = 'map';