From 889369e5d81d52e084a9521200c45ca1eab25a89 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 9 Jul 2012 19:06:12 -0300 Subject: [PATCH] - Do not store order attribute when is null. --- mindplot/src/main/javascript/persistence/XMLSerializer_Pela.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindplot/src/main/javascript/persistence/XMLSerializer_Pela.js b/mindplot/src/main/javascript/persistence/XMLSerializer_Pela.js index 390be34a..312b18db 100644 --- a/mindplot/src/main/javascript/persistence/XMLSerializer_Pela.js +++ b/mindplot/src/main/javascript/persistence/XMLSerializer_Pela.js @@ -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); }