Backbone.dualStorage
Backbone.dualStorage copied to clipboard
A dual (localStorage and REST) sync adapter for Backbone.js
I have a fairly big database with a table containing near 9K rows. When I fetch the collection the request takes about 8 seconds but the localsync methods takes a...
The parse and toJSON methods are not applied consistent. - parseBeforeLocalSave should be defined on the model and is always invoked before the server response is saved in the local...
For models where both properties local and remote are specified, the case where local==true and remote==true causes function dualSync to only execute the onlineSync method. ``` javascript dualsync = function(method,...
Is there a reason that offline status codes are limited to 502 & 408? We're having issues where locally stored data is not marked as dirty even though the request...
`Backbone.Model.set` and therefore `fetch` accept an `unset` option. Its effect is to unset any attributes on the model that are not seen in a server response. Right now `modelUpdatedWithResponse` does...
For perf reasons, our API accepts a `since` parameter and only returns items that have _changed_ since that time (typically it's the last time that the particular client has synced),...
Local attributes for models that are not yet synced can be lost after `save(attrs, {patch: true})` A model will have a temporary id when it is recently created and has...
This is an edge case for me, but I have a case where a user model is used for login and that is sent up to the server. I'd like...
Default Backbone implementation states that it is returning a [jqXHR object](http://api.jquery.com/jQuery.ajax/#jqXHR). jQuery also documents that a jqXHR objects _implement the Promise interface, giving them all the properties, methods, and behavior...