1
0
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:
Jari Bakken 2014-11-14 12:20:11 +01:00 committed by Ivar Conradi Østhus
parent b05a90f7a7
commit dc14bfc173

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