Skip to content

Commit

Permalink
fixing or= JS style for sync options.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Feb 27, 2012
1 parent a91b325 commit c9599d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backbone.js
Expand Up @@ -1246,8 +1246,8 @@
Backbone.sync = function(method, model, options) {
var type = methodMap[method];

// Default options to an empty object.
options = options || {};
// Default options, unless specified.
options || (options = {});

// Default JSON-request options.
var params = {type: type, dataType: 'json'};
Expand Down

0 comments on commit c9599d6

Please sign in to comment.