mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Merge pull request #1052 from Sid3Show/master
Fix to make Backbone.sync options parameter optional again
This commit is contained in:
@@ -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'};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user