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

Avoid adding null req/res properties to messages

This commit is contained in:
Nick O'Leary 2014-04-13 22:12:57 +01:00
parent de9ee37b42
commit 92d10384ba

View File

@ -148,8 +148,12 @@ Node.prototype.send = function(msg) {
delete mm.req;
delete mm.res;
var m = clone(mm);
if (req) {
m.req = req;
}
if (res) {
m.res = res;
}
mm.req = req;
mm.res = res;
node.receive(m);