Revert "Revert "More performance improvements + etc.""

This commit is contained in:
Isiah Meadows 2015-12-16 11:04:07 -05:00
parent 897060d6ed
commit b2faa43f91
28 changed files with 3207 additions and 1326 deletions

View file

@ -0,0 +1,14 @@
(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 = {}))