Skip to content

Commit

Permalink
fixes #18810, set data to null if options.data is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobroufa authored and dylans committed Oct 28, 2016
1 parent 40221c7 commit 5d1833a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion request/xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ define([
remover = addListeners(_xhr, dfd, response);
}

var data = options.data,
// IE11 treats data: undefined different than other browsers
var data = typeof(options.data) === 'undefined' ? null : options.data,
async = !options.sync,
method = options.method;

Expand Down

0 comments on commit 5d1833a

Please sign in to comment.