Revert "More performance improvements + etc."

This commit is contained in:
Isiah Meadows 2015-12-16 10:53:27 -05:00
parent e364121ffb
commit 998704a722
28 changed files with 1325 additions and 3206 deletions

View file

@ -1,14 +0,0 @@
(function (app) {
"use strict"
var STORAGE_ID = "todos-mithril"
app.storage = {
get: function () {
return JSON.parse(localStorage.getItem(STORAGE_ID) || "[]")
},
put: function (todos) {
localStorage.setItem(STORAGE_ID, JSON.stringify(todos))
}
}
})(this.app || (this.app = {}))

View file

@ -1,12 +0,0 @@
/* global m */
(function (app) {
"use strict"
// Todo Model
app.Todo = function (data) {
this.title = m.prop(data.title)
this.completed = m.prop(data.completed || false)
this.editing = m.prop(data.editing || false)
}
})(this.app || (this.app = {}))