Shuffling works, and lots of refactoring

This commit is contained in:
2016-01-31 15:34:34 +08:00
parent e1bb801e9f
commit e0a32e38f1
10 changed files with 251 additions and 152 deletions
+4
View File
@@ -24,6 +24,10 @@ Task
initialize: function() {
listView = this.listView = new ListView();
this.input = $('#newTask');
// stop browser going back a page when jamming backspace
window.addEventListener('keydown',function(e){if(e.keyIdentifier=='U+0008'||e.keyIdentifier=='Backspace'){if(e.target==document.body){e.preventDefault();}}},true);
},
createNewTask: function(e) {