1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add newline when wrapping function to allow comments

Fixes #122
This commit is contained in:
Nick O'Leary 2013-12-22 22:22:47 +00:00
parent 5d43334b1c
commit c6264e8040

View File

@ -25,7 +25,7 @@ function FunctionNode(n) {
RED.nodes.createNode(this,n);
this.name = n.name;
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.context = {global:RED.settings.functionGlobalContext || {}};
try {