Skip to content

Commit

Permalink
Made Backbone.sync options parameter optional
Browse files Browse the repository at this point in the history
  • Loading branch information
OCannings committed Feb 27, 2012
1 parent 41e9d1a commit daea564
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'};

Expand Down

0 comments on commit daea564

Please sign in to comment.