Made Backbone.sync options parameter optional

This commit is contained in:
Oli
2012-02-27 18:04:59 +00:00
parent 41e9d1a847
commit daea564e8a

View File

@@ -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'};