Skip to content

Commit

Permalink
don’t use options.data to set the payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Schreck committed Jan 22, 2014
1 parent 27c4311 commit 37e7ce6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions shared/syncer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@ if (isServer) {
var syncer = module.exports;

function clientSync(method, model, options) {
var data, error;
data = _.clone(options.data);
options.url = this.getUrl(options.url, true, data);
data = addApiParams(method, model, data);
options.data = data;
options.emulateJSON = true;
var error;
options.url = this.getUrl(options.url, true);
error = options.error;
if (error) {
options.error = function(xhr) {
Expand Down

0 comments on commit 37e7ce6

Please sign in to comment.