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
1 changed files with 2 additions and 0 deletions

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);