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:
parent
de9ee37b42
commit
92d10384ba
@ -148,8 +148,12 @@ Node.prototype.send = function(msg) {
|
|||||||
delete mm.req;
|
delete mm.req;
|
||||||
delete mm.res;
|
delete mm.res;
|
||||||
var m = clone(mm);
|
var m = clone(mm);
|
||||||
|
if (req) {
|
||||||
m.req = req;
|
m.req = req;
|
||||||
|
}
|
||||||
|
if (res) {
|
||||||
m.res = res;
|
m.res = res;
|
||||||
|
}
|
||||||
mm.req = req;
|
mm.req = req;
|
||||||
mm.res = res;
|
mm.res = res;
|
||||||
node.receive(m);
|
node.receive(m);
|
||||||
|
Loading…
Reference in New Issue
Block a user