mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
Fire callback immediately on timer start.
This commit is contained in:
parent
b05a90f7a7
commit
dc14bfc173
@ -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