diff --git a/red/runtime/nodes/registry/loader.js b/red/runtime/nodes/registry/loader.js index cf7a690df..9b3149074 100644 --- a/red/runtime/nodes/registry/loader.js +++ b/red/runtime/nodes/registry/loader.js @@ -238,27 +238,12 @@ function loadNodeSet(node) { if (RED.hasOwnProperty(i) && !/^(init|start|stop)$/.test(i)) { var propDescriptor = Object.getOwnPropertyDescriptor(RED,i); Object.defineProperty(red,i,propDescriptor); - if (typeof RED[i] === 'function') { - console.log(i+"()"); - } else { - for (var j in RED[i]) { - if (typeof RED[i][j] === 'function') { - console.log(i+"."+j+"()"); - } else if (typeof RED[i][j] === 'number') { - console.log(i+"."+j+" #"); - } else if (typeof RED[i][j] === 'string') { - console.log(i+"."+j+" $"); - } else { - console.log(i+"."+j+" "+typeof RED[i][j]); - } - } - } } } red["_"] = function() { var args = Array.prototype.slice.call(arguments, 0); args[0] = node.namespace+":"+args[0]; - return i18n._.apply(null,args); + return runtime.i18n._.apply(null,args); } var promise = r(red); if (promise != null && typeof promise.then === "function") { diff --git a/test/nodes/helper.js b/test/nodes/helper.js index edb895f7c..cee9887dd 100644 --- a/test/nodes/helper.js +++ b/test/nodes/helper.js @@ -99,7 +99,7 @@ module.exports = { return messageId; }; - redNodes.init(settings, storage); + redNodes.init({settings:settings, storage:storage}); credentials.init(storage,express()); RED.nodes.registerType("helper", helperNode); if (Array.isArray(testNode)) {