mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
Fire callback immediately on timer start.
This commit is contained in:
parent
0a95ffe104
commit
43c4c62ff3
@ -11,6 +11,7 @@ Timer.prototype.start = function() {
|
||||
|
||||
console.log('starting timer');
|
||||
this.timerId = setInterval(this.cb, this.interval);
|
||||
this.cb();
|
||||
};
|
||||
|
||||
Timer.prototype.stop = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user