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