Restore node ids from config list

This commit is contained in:
Nick O'Leary 2014-09-20 21:27:09 +01:00
parent ed1da5cf7b
commit f939d52551
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,12 @@ var registry = (function() {
init: function() {
if (settings.available()) {
nodeConfigs = settings.get("nodes")||{};
// Restore the node id property to individual entries
for (var id in nodeConfigs) {
if (nodeConfigs.hasOwnProperty(id)) {
nodeConfigs[id].id = id;
}
}
} else {
nodeConfigs = {};
}