mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
new-style callback function (catch node)
This commit is contained in:
parent
3c8654fa25
commit
0d0bf62fc4
@ -22,8 +22,9 @@ module.exports = function(RED) {
|
|||||||
var node = this;
|
var node = this;
|
||||||
this.scope = n.scope;
|
this.scope = n.scope;
|
||||||
this.uncaught = n.uncaught;
|
this.uncaught = n.uncaught;
|
||||||
this.on("input",function(msg) {
|
this.on("input",function(msg, send, done) {
|
||||||
this.send(msg);
|
send(msg);
|
||||||
|
done();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user