summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2014-11-30 17:33:23 +0900
committerSean Whitton <spwhitton@spwhitton.name>2014-11-30 17:33:23 +0900
commit0059eb528acff050e752cf987a3ad48e283d4f04 (patch)
tree720a3fe906401ad42e3520eba838cca411e507f6
parent46b34669c7ff6e68ac6f7db3f840a7056b63ae6e (diff)
downloadschoolclock-0059eb528acff050e752cf987a3ad48e283d4f04.tar.gz
remove stray variable and cancel a TODO list item
-rw-r--r--js/main.js12
1 files changed, 1 insertions, 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,