scttnlsn / backbone.io

Backbone.js sync via Socket.IO
http://scttnlsn.github.io/backbone.io
541 stars 66 forks source link

Backend Sync: Adding Deferred support #54

Closed josx closed 10 years ago

josx commented 10 years ago

We are working on a project that we need to keep track of easily multiple fetch request (needed also by backbone-relational).

In Addition Backbone sync return jquery deferred AKA promises ( http://backbonejs.org/#Sync ) so i added support on Backend.sync to return promises.

scttnlsn commented 10 years ago

I think we should pass the error to .reject.

josx commented 10 years ago

You are right! Done!