mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-08-12 11:40:31 +08:00
Got localstorage working
This commit is contained in:
@@ -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;
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user