Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing or= JS style for sync options.

  • Loading branch information...
commit c9599d6ba000d327413d5bbf75fc888f4e7c5888 1 parent a91b325
@jashkenas jashkenas authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 backbone.js
View
4 backbone.js
@@ -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'};
Please sign in to comment.
Something went wrong with that request. Please try again.