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

Function setTimeout/Interval wrapper not returing timer id

Fixes #753
This commit is contained in:
Nick O'Leary 2015-11-14 21:21:14 +00:00
parent 34537180c3
commit 4d99536ea7

View File

@ -98,6 +98,7 @@ module.exports = function(RED) {
func();
},delay);
node.outstandingTimers.push(timerId);
return timerId;
},
clearTimeout: function(id) {
clearTimeout(id);
@ -109,6 +110,7 @@ module.exports = function(RED) {
setInterval: function(func,delay) {
var timerId = setInterval(func,delay);
node.outstandingIntervals.push(timerId);
return timerId;
},
clearInterval: function(id) {
clearInterval(id);