Skip to content

Commit

Permalink
Don't discard default options
Browse files Browse the repository at this point in the history
Assign the merged defaults back to the options object for the xhr helper.
  • Loading branch information
dmlap committed Jul 21, 2015
1 parent ccb8571 commit 964683e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var xhr = function(options, callback){
}

// Merge with default options
mergeOptions({
options = mergeOptions({
method: 'GET',
timeout: 45 * 1000
}, options);
Expand Down

0 comments on commit 964683e

Please sign in to comment.