Commit fe9098ba authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unused old code removed

parent 5925d6a6
......@@ -106,7 +106,6 @@ Submap.prototype.open = function(htmlTag) {
self.initialized = true;
} else {
$(self.htmlTag).dialog("open");
}
};
......@@ -117,26 +116,6 @@ Submap.prototype.openDataOverlay = function(identifier) {
}
};
Submap.prototype.loadSubmapConfiguration = function() {
var self = this;
var onConfigurationReload = function() {
var submodelFound = false;
for (var i = 0; i < self.getTopMap().configuration.SUBMODELS.length && (!submodelFound); i++) {
if (self.getTopMap().configuration.SUBMODELS[i].getId() === self.getId()) {
self.configuration = self.getTopMap().configuration.SUBMODELS[i];
submodelFound = true;
}
}
if (!submodelFound) {
throw "Cannot find configuration for submodel " + self.getId();
}
logger.debug("Submodel config reloaded: " + self.getId());
};
onConfigurationReload();
this.getTopMap().configuration.addListener("onreload", onConfigurationReload);
};
Submap.prototype.getTopMap = function() {
return this.getCustomMap();
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment