Permalink
Browse files

Merge pull request #1052 from Sid3Show/master

Fix to make Backbone.sync options parameter optional again
  • Loading branch information...
2 parents 41e9d1a + daea564 commit a91b325c9933cbfec388a2fa03408b993e08c696 @jashkenas jashkenas committed Feb 27, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 backbone.js
View
@@ -1246,6 +1246,9 @@
Backbone.sync = function(method, model, options) {
var type = methodMap[method];
+ // Default options to an empty object.
+ options = options || {};
+
// Default JSON-request options.
var params = {type: type, dataType: 'json'};

0 comments on commit a91b325

Please sign in to comment.