1
0
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:
Jari Bakken 2014-11-14 12:20:11 +01:00
parent 0a95ffe104
commit 43c4c62ff3

View File

@ -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() {