Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(sync): add $http promise arguments to options
Backbone methods that internally use Backbone.sync (like fetch, create, save) accept error and success callback functions with the arguments `collection` (or `model`), `response`, `options`. In normal Backbone.js using $.ajax, options.xhr gets set to a jqXHR object. Although $http doesn't give us an XHR object to use, this makes the differing APIs a little bit closer.
- Loading branch information