From 0059eb528acff050e752cf987a3ad48e283d4f04 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 30 Nov 2014 17:33:23 +0900 Subject: remove stray variable and cancel a TODO list item --- js/main.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/js/main.js b/js/main.js index 71aaf65..255c43f 100644 --- a/js/main.js +++ b/js/main.js @@ -1,10 +1,3 @@ -/* - * TODO: - * - * - initialise time wasting clock from storage in OO idiom rather - * than just stray function call - */ - // class: one of the classes in our school var Class = function (grade, clas, total) { this.grade = grade; @@ -187,6 +180,7 @@ var timeWastingClock = MyFlipClock($('.time-wasting-clock'), { } } }); +timeWastingClock.setTime($.jStorage.get("time_wasted", 0)); timeWastingClock.running = false; timeWastingClock.reset = $.proxy(function () { @@ -220,10 +214,6 @@ timeWastingClock.toggle = $.proxy(function () { } }, timeWastingClock); -timeWastingClock.setTime($.jStorage.get("time_wasted", 0)); - -var $timeWastingClockRunning = false; - var activityClock = MyFlipClock($('.activity-countdown'), { autoStart:false, countdown:true, -- cgit v1.2.3