diff --git a/red/nodes/registry.js b/red/nodes/registry.js index 895a0b241..d24bcfa75 100644 --- a/red/nodes/registry.js +++ b/red/nodes/registry.js @@ -65,15 +65,14 @@ var registry = (function() { function saveNodeList() { var moduleList = {}; - for (var mod in moduleConfigs) { - if (moduleConfigs.hasOwnProperty(mod)) { - var module = mod; + for (var module in moduleConfigs) { + if (moduleConfigs.hasOwnProperty(module)) { if (!moduleList[module]) { moduleList[module] = {}; moduleList[module].name = module; moduleList[module].nodes = {}; } - var nodes = moduleConfigs[mod].nodes; + var nodes = moduleConfigs[module].nodes; for(var node in nodes) { if (nodes.hasOwnProperty(node)) { var config = nodes[node];