Edward Anderson

Results 111 comments of Edward Anderson

Have you looked at using `syncDirtyAndDestroyed` after returning online for syncing things that were saved while offline (dirty)?

One of my near goals is to document our API better, beyond just having a Readme.

Action summary: Transition from using `Backbone.DualStorage.offlineStatusCodes` to something like `Backbone.DualStorage.isOffline`.

Yes, you're right that dualStorage does not currently account for `remove: false`. I don't know of any workaround for your situation. We should add support for this option when fetching...

We were discussing this here: https://github.com/nilbus/Backbone.dualStorage/issues/12#issuecomment-42751707 I had also said this, which you have just shown me was an incorrect assumption: > I don't believe we need any mode that...

I will document the options regardless, but I hope to make the option names make sense without having to refer to documentation. These would replace both the `local` and `remote`...

I believe dualsync will already return the jQuery xhr promise when online, and we only need to create a new promise when localsync handles the sync by itself. I'll write...

I think what you're doing is a good idea. You should be able to pull this off by setting your collection/model to be local, except when you call `syncDirtyAndDestroyed`. With...

Yes, exactly. `local: true` will make everything happen locally (offline); you just need to call `syncDirtyAndDestroyed` to try to sync in the background. There is no callback from syncDirtyAndDestroyed to...