mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
Remove Hash dependency.
This commit is contained in:
parent
8cbc941a70
commit
bf82491de8
@ -212,7 +212,7 @@ mindplot.persistence.XMLSerializer_Pela = new Class({
|
|||||||
// Is a wisemap?.
|
// Is a wisemap?.
|
||||||
$assert(rootElem.tagName == mindplot.persistence.XMLSerializer_Pela.MAP_ROOT_NODE, "This seem not to be a map document.");
|
$assert(rootElem.tagName == mindplot.persistence.XMLSerializer_Pela.MAP_ROOT_NODE, "This seem not to be a map document.");
|
||||||
|
|
||||||
this._idsMap = new Hash();
|
this._idsMap = {};
|
||||||
// Start the loading process ...
|
// Start the loading process ...
|
||||||
var version = rootElem.getAttribute("version");
|
var version = rootElem.getAttribute("version");
|
||||||
|
|
||||||
@ -248,10 +248,10 @@ mindplot.persistence.XMLSerializer_Pela = new Class({
|
|||||||
id = parseInt(id);
|
id = parseInt(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._idsMap.has(id)) {
|
if (this._idsMap[id]) {
|
||||||
id = null;
|
id = null;
|
||||||
} else {
|
} else {
|
||||||
this._idsMap.set(id, domElem);
|
this._idsMap[id] = domElem);
|
||||||
}
|
}
|
||||||
|
|
||||||
var topic = mindmap.createNode(type, id);
|
var topic = mindmap.createNode(type, id);
|
||||||
|
Loading…
Reference in New Issue
Block a user