Menu refactor

This commit is contained in:
Gonzalo Bellver
2011-11-30 18:06:45 -03:00
parent e520d9baba
commit a300899673
5 changed files with 322 additions and 135 deletions

View File

@@ -167,7 +167,8 @@ mindplot.XMLMindmapSerializer_Beta = new Class({
$assert(rootElem.tagName == mindplot.XMLMindmapSerializer_Beta.MAP_ROOT_NODE, "This seem not to be a map document.");
// Start the loading process ...
var mindmap = new mindplot.model.Mindmap();
var version = rootElem.getAttribute("version");
var mindmap = new mindplot.model.Mindmap(mapId, version);
var children = rootElem.childNodes;
for (var i = 0; i < children.length; i++) {