mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
34537180c3
commit
4d99536ea7
@ -98,6 +98,7 @@ module.exports = function(RED) {
|
|||||||
func();
|
func();
|
||||||
},delay);
|
},delay);
|
||||||
node.outstandingTimers.push(timerId);
|
node.outstandingTimers.push(timerId);
|
||||||
|
return timerId;
|
||||||
},
|
},
|
||||||
clearTimeout: function(id) {
|
clearTimeout: function(id) {
|
||||||
clearTimeout(id);
|
clearTimeout(id);
|
||||||
@ -109,6 +110,7 @@ module.exports = function(RED) {
|
|||||||
setInterval: function(func,delay) {
|
setInterval: function(func,delay) {
|
||||||
var timerId = setInterval(func,delay);
|
var timerId = setInterval(func,delay);
|
||||||
node.outstandingIntervals.push(timerId);
|
node.outstandingIntervals.push(timerId);
|
||||||
|
return timerId;
|
||||||
},
|
},
|
||||||
clearInterval: function(id) {
|
clearInterval: function(id) {
|
||||||
clearInterval(id);
|
clearInterval(id);
|
||||||
|
Loading…
Reference in New Issue
Block a user