Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made Backbone.sync options parameter optional

  • Loading branch information...
commit daea564e8a774b7ed42359356b8d971e96705d12 1 parent 41e9d1a
@OCannings OCannings authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  backbone.js
View
3  backbone.js
@@ -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'};
Please sign in to comment.
Something went wrong with that request. Please try again.