Permalink
Browse files

Added missing bind and removed dupe function. Thanks, Vee!

  • Loading branch information...
1 parent 2bd1b16 commit 7fb3f26b7c236ffe49215e2b8e7e513024c775d7 @jonathanstark committed Jan 18, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 ch07/kilo.js
View
@@ -7,7 +7,7 @@ $(document).ready(function(){
$('#createEntry form').submit(createEntry);
$('#settings form').submit(saveSettings);
$('#settings').bind('pageAnimationStart', loadSettings);
- $('#dates li a').('click touchend', function() {
+ $('#dates li a').bind('click touchend', function() {
var dayOffset = this.id;
var date = new Date();
date.setDate(date.getDate() - dayOffset);
@@ -271,6 +271,3 @@ function startWatchingShake() {
function stopWatchingShake() {
navigator.accelerometer.clearWatch(sessionStorage.watchId);
}
-function stopWatchingShake() {
- navigator.accelerometer.clearWatch(sessionStorage.watchId);
-}

0 comments on commit 7fb3f26

Please sign in to comment.