diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-03-23 20:54:50 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-03-23 20:54:50 (GMT) |
commit | 67ecaf31f7125c9d24d3c52dded063ad2f5a788f (patch) | |
tree | 53138a36c5c62d0cd3a9705ee5b0c8706cc537cf /www/js | |
parent | fc2b4c269d5ebb99f5d86eabbed0fade67aa3513 (diff) |
fix accidentially removed function
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/clock.js | 4 |
1 files changed, 4 insertions, 0 deletions
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()); |