summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();