Skip to content

Commit

Permalink
Don't override jQuery.ajaxSettings.data.
Browse files Browse the repository at this point in the history
  • Loading branch information
benpickles committed Sep 21, 2010
1 parent c15f1cc commit da944c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model_rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Model.REST = function(resource, methods) {
params = null;
}
if(jQuery.ajaxSettings.data){
params = jQuery.extend(jQuery.ajaxSettings.data, params || {});
params = jQuery.extend({}, jQuery.ajaxSettings.data, params)
}
return JSON.stringify(params)
},
Expand Down

0 comments on commit da944c7

Please sign in to comment.