mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Undo some formatting changes
This commit is contained in:
parent
50f7880791
commit
9ae7cde840
@ -208,12 +208,8 @@ module.exports = function (RED) {
|
||||
}, 60000); // trigger every 60 secs
|
||||
|
||||
this.on("close", function () {
|
||||
if (tock) {
|
||||
clearTimeout(tock);
|
||||
}
|
||||
if (tick) {
|
||||
clearInterval(tick);
|
||||
}
|
||||
if (tock) { clearTimeout(tock); }
|
||||
if (tick) { clearInterval(tick); }
|
||||
});
|
||||
}
|
||||
|
||||
@ -221,9 +217,7 @@ module.exports = function (RED) {
|
||||
var node = RED.nodes.getNode(req.params.id);
|
||||
if (node != null) {
|
||||
try {
|
||||
node.emit("input", {
|
||||
payload: "reset"
|
||||
});
|
||||
node.emit("input", { payload: "reset" });
|
||||
res.sendStatus(200);
|
||||
} catch (err) {
|
||||
res.sendStatus(500);
|
||||
|
Loading…
x
Reference in New Issue
Block a user