lucian1900/Backbone.dualStorage — Issue #3: Not re-using Backbone.Sync?
Author: edwardmsmith
Created: 2012-01-26 21:29:19+00:00
State: open

By not reusing the original Backbone.Sync, it makes it harder to integrate with other Backbone "plugins" that also replace Backbone.Sync.

In our specific case, we're interested in using Backbone.io (https://github.com/scttnlsn/backbone.io) to allow Backbone to sync over Socket.io channels, instead of Ajax. Backbone.io works by replacing Backbone.Sync.

I thought that, by careful loading order, I could integrate the two, but this isn't going to work, since you don't re-use the existing Backbone.Sync for "remote".

From a quick glance, it looks like you Coffeescript'ed the Backbone.Sync and pulled emulateHTTP and emulateJSON, but otherwise are identical.

So, wondering if you'd consider re-using any existing Backbone.Sync that might exist as the onlineSync function?

Thanks!