superfeedr/indexeddb-backbonejs-adapter — pull request #7 by wnadeau (2012-03-01 01:31:46+00:00)
Title: remember original Backbone.sync ajax function

following the pattern seen in the [localStorage adapter](https://github.com/jeromegn/Backbone.localStorage/blob/master/backbone.localStorage.js#L102), perhaps this is how we should support switching between ajax and indexed-db saves. Seems simple enough.

For those of us fine with having a model tied to a specific persistence type, we can just override sync in our models and point to Backbon.ajaxSync instead.

```coffeescript
class MyMode extends Backbone.Model

sync: Backbone.ajaxSync
```

and if you need to have a model that can persists both through ajax and indexedDB, it seems like the 'backbone way' wants this logic to be provided in method overrides. That could also help drive out a multi-layer persistence adapter over time (beyond scope).

Pretty sure this'll take care of #3 as well