summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2016-04-21 19:42:17 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2016-04-21 19:42:17 (GMT)
commit964822ed420618d8fd75cd0843424ead5d6fb159 (patch)
treee8a465d3fa3839e3c57d9b389e1ba92e4c3642db
parentee11338a3399a3eb56fa371389218c81ac746058 (diff)
init clock
-rw-r--r--www/js/clock.js6
-rw-r--r--www/js/router.js3
2 files changed, 3 insertions, 6 deletions
diff --git a/www/js/clock.js b/www/js/clock.js
index eb04eed..3562b1e 100644
--- a/www/js/clock.js
+++ b/www/js/clock.js
@@ -109,12 +109,6 @@ function Clock() {
};
}
-var clock = new Clock();
-
-function clock_init() {
- clock.start();
-}
-
function clock_add_callback(cb) {
clock.addCallback(cb);
}
diff --git a/www/js/router.js b/www/js/router.js
index e3ab4e5..62b9a77 100644
--- a/www/js/router.js
+++ b/www/js/router.js
@@ -22,12 +22,15 @@
'use strict';
+var clock = null;
var auth = null;
var router = null;
var importer = null;
var rdxport = null;
$(document).ready(function() {
+ clock = new Clock();
+ clock.start();
auth = new Rdxport.Auth();
router = new Rdxport.Router(auth);
router.route();