documentcloud/backbone — pull request #1627 by tgriesser (2012-09-05 17:27:54+00:00)
Title: Backbone.sync - remove params in favor of options

Rather than using the `params` variable in `Backbone.sync`, all options for the ajax call can be added to the `options` argument.

This would be helpful in determining the type of action that was used to trigger the `error` or `success` event, as the `options` hash is passed as the last argument in the trigger - so `options.type` (or `options.data._method` if `emulateHTTP` is used) will now have the type of request associated with the sync along with other info about the request.