From 67ecaf31f7125c9d24d3c52dded063ad2f5a788f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 23 Mar 2016 21:54:50 +0100 Subject: fix accidentially removed function diff --git a/www/js/clock.js b/www/js/clock.js index 59f53de..a2b0628 100644 --- a/www/js/clock.js +++ b/www/js/clock.js @@ -43,6 +43,10 @@ function Clock() { this.draw_callbacks.fireWith(window, [date_str, time_str, get_rd_week(rdtime_ms)]); } + this.addCallback = function(cb) { + this.draw_callbacks.add(cb); + } + this.ntp_update = function(event) { var t4 = (+new Date()); -- cgit v0.10.2