mirror of https://github.com/node-red/node-red.git
make close handler argument only one
parent
7cec7ae608
commit
58c8311d56
|
@ -189,8 +189,7 @@ module.exports = function(RED) {
|
|||
}
|
||||
}
|
||||
|
||||
this.on('close', function(arg1, arg2) {
|
||||
var cb = arg2 ? arg2 : arg1;
|
||||
this.on('close', function(cb) {
|
||||
if (cb) {
|
||||
node.closeCallbacks.push(done);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue