mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-23 11:53:48 +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?.
|
||||
$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 ...
|
||||
var version = rootElem.getAttribute("version");
|
||||
|
||||
@ -248,10 +248,10 @@ mindplot.persistence.XMLSerializer_Pela = new Class({
|
||||
id = parseInt(id);
|
||||
}
|
||||
|
||||
if (this._idsMap.has(id)) {
|
||||
if (this._idsMap[id]) {
|
||||
id = null;
|
||||
} else {
|
||||
this._idsMap.set(id, domElem);
|
||||
this._idsMap[id] = domElem);
|
||||
}
|
||||
|
||||
var topic = mindmap.createNode(type, id);
|
||||
|
Loading…
Reference in New Issue
Block a user