From 591b5f3f916c7058858380aedc043ae1cb447eef Mon Sep 17 00:00:00 2001 From: Anna Thomas Date: Thu, 20 Nov 2014 10:06:18 +0000 Subject: [PATCH] Replaced hex id with 'module/set' id --- red/nodes/registry.js | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/red/nodes/registry.js b/red/nodes/registry.js index 57a15faa3..74ae69838 100644 --- a/red/nodes/registry.js +++ b/red/nodes/registry.js @@ -95,7 +95,6 @@ var registry = (function() { nodeList = []; nodeConfigCache = null; }, - addNodeSet: function(id,set) { if (!set.err) { set.types.forEach(function(t) { @@ -103,10 +102,8 @@ var registry = (function() { }); } - if (set.module) { - nodeModules[set.module] = nodeModules[set.module]||{nodes:[]}; - nodeModules[set.module].nodes.push(id); - } + nodeModules[set.module] = nodeModules[set.module]||{nodes:[]}; + nodeModules[set.module].nodes.push(set.name); nodeConfigs[id] = set; nodeList.push(id); @@ -141,7 +138,7 @@ var registry = (function() { } var infoList = []; for (var i=0;i