Permalink
Browse files

Made Backbone.sync options parameter optional

  • Loading branch information...
1 parent 41e9d1a commit daea564e8a774b7ed42359356b8d971e96705d12 @OCannings OCannings 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 daea564

Please sign in to comment.