I am working on a standalone javascript application. It must support IE7, so localStorage is not an option. However, the application does NOT need to save any information (if you update everything that you wipe, and this is normal).
So my question is: how do I configure Backbone to use the standard javascript variable (JSON) as a data store?
If I omit the model.url () method, I get an error. I think it's simple, but I'm not sure what to do.
Thank!
, localStorage, , Backbone.sync. Backbone, /// new, save, fetch ..
Backbone.sync
new
save
fetch
RESTful, url . LocalStorage, .
url
, Backbone.sync , , "", "", "" "". backbone-localstorage.js, , , / id/object/value.
backbone-localstorage.js
save create.
create
store add. .
store
add