Permalink
Browse files

Backbone expects us to return a promise from the sync method.

  • Loading branch information...
1 parent 2750dae commit e9d1fd20af20a239dc9b64ad50b34a271bd11782 Adrian Rossouw committed Jan 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 client/backbone.js
View
@@ -66,5 +66,5 @@ Backbone.sync = function(method, model, options) {
};
// Make the request.
- $.ajax(params);
+ return $.ajax(params);
};

0 comments on commit e9d1fd2

Please sign in to comment.