From 43c4c62ff3f1e1c70a4173b54b85567b0ae01b54 Mon Sep 17 00:00:00 2001 From: Jari Bakken Date: Fri, 14 Nov 2014 12:20:11 +0100 Subject: [PATCH] Fire callback immediately on timer start. --- public/js/utils/Timer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/js/utils/Timer.js b/public/js/utils/Timer.js index 8e366fbbb1..162e4d77e7 100644 --- a/public/js/utils/Timer.js +++ b/public/js/utils/Timer.js @@ -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() {