mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
5d43334b1c
commit
c6264e8040
@ -25,7 +25,7 @@ function FunctionNode(n) {
|
|||||||
RED.nodes.createNode(this,n);
|
RED.nodes.createNode(this,n);
|
||||||
this.name = n.name;
|
this.name = n.name;
|
||||||
this.func = n.func;
|
this.func = n.func;
|
||||||
var functionText = "var results = (function(msg){"+this.func+"})(msg);";
|
var functionText = "var results = (function(msg){"+this.func+"\n})(msg);";
|
||||||
this.topic = n.topic;
|
this.topic = n.topic;
|
||||||
this.context = {global:RED.settings.functionGlobalContext || {}};
|
this.context = {global:RED.settings.functionGlobalContext || {}};
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user