Got localstorage working

This commit is contained in:
2016-01-29 19:52:05 +08:00
parent 2996b174b8
commit 14af17e1b4
5 changed files with 34 additions and 132 deletions
+7 -4
View File
@@ -1,21 +1,24 @@
define(
[
'backbone',
'models/task'
'models/task',
'localstorage',
],
function(
Backbone,
Task
Task,
LocalStorage
) {
var List = Backbone.Collection.extend({
localStorage: new Backbone.LocalStorage("tasks"),
model: Task,
url: '/tasks'
});
return List;
});
});