diff --git a/packages/node_modules/@node-red/registry/lib/registry.js b/packages/node_modules/@node-red/registry/lib/registry.js index 467037693..8581fadb0 100644 --- a/packages/node_modules/@node-red/registry/lib/registry.js +++ b/packages/node_modules/@node-red/registry/lib/registry.js @@ -24,7 +24,7 @@ var events; var settings; var loader; -var nodeConfigCache = null; +var nodeConfigCache = {}; var moduleConfigs = {}; var nodeList = []; var nodeConstructors = {}; @@ -39,7 +39,7 @@ function init(_settings,_loader, _events) { nodeTypeToId = {}; nodeConstructors = {}; nodeList = []; - nodeConfigCache = null; + nodeConfigCache = {}; } function load() { @@ -210,7 +210,7 @@ function addModule(module) { if (module.examples) { library.addExamplesDir(module.name,module.examples.path); } - nodeConfigCache = null; + nodeConfigCache = {}; } @@ -233,7 +233,7 @@ function removeNode(id) { }); config.enabled = false; config.loaded = false; - nodeConfigCache = null; + nodeConfigCache = {}; return filterNodeInfo(config); } @@ -389,7 +389,7 @@ function registerNodeConstructor(nodeSet,type,constructor) { } function getAllNodeConfigs(lang) { - if (!nodeConfigCache) { + if (!nodeConfigCache[lang]) { var result = ""; var script = ""; for (var i=0;i