mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-09 00:43:23 +01:00
- Do not store order attribute when is null.
This commit is contained in:
parent
890364f13c
commit
889369e5d8
@ -68,7 +68,7 @@ mindplot.persistence.XMLSerializer_Pela = new Class({
|
|||||||
parentTopic.setAttribute("position", pos.x + ',' + pos.y);
|
parentTopic.setAttribute("position", pos.x + ',' + pos.y);
|
||||||
|
|
||||||
var order = topic.getOrder();
|
var order = topic.getOrder();
|
||||||
if (!isNaN(order))
|
if (typeof order === 'number' && isFinite(order))
|
||||||
parentTopic.setAttribute("order", order);
|
parentTopic.setAttribute("order", order);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user