Merge pull request #1052 from Sid3Show/master

Fix to make Backbone.sync options parameter optional again
This commit is contained in:
Jeremy Ashkenas
2012-02-27 11:03:49 -08:00

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