developmentseed/bones — pull request #69 by vkareh (2012-11-01 20:08:48+00:00)
Title: Backbone.sync should accept $.ajax() settings

The Backbone.sync override in Bones prevents us from passing [AJAX settings](http://api.jquery.com/jQuery.ajax). This change enables this behavior so that model requests can fire all configured [AJAX Events](http://docs.jquery.com/Ajax_Events).

Passing `{data: ...}` to `model.fetch()` (as per the documentation for `$.ajax()`) will make the query string available in `options.query` in the server-side `prototype.sync()`.

This change also makes the `Backbone.sync` override in Bones behave more closely to the original function in [backbone.js](https://github.com/documentcloud/backbone/blob/master/backbone.js#L1364).