Remove Hash dependency.

This commit is contained in:
Paulo Gustavo Veiga 2014-02-19 03:09:24 -03:00
parent f3f03be007
commit f8f8892dbb

View File

@ -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);