- Do not store order attribute when is null.

This commit is contained in:
Paulo Gustavo Veiga 2012-07-09 19:06:12 -03:00
parent 890364f13c
commit 889369e5d8

View File

@ -68,7 +68,7 @@ mindplot.persistence.XMLSerializer_Pela = new Class({
parentTopic.setAttribute("position", pos.x + ',' + pos.y);
var order = topic.getOrder();
if (!isNaN(order))
if (typeof order === 'number' && isFinite(order))
parentTopic.setAttribute("order", order);
}