Make sure original context is maintained and not the deep extended one. Fixes #5924.
This commit is contained in:
parent
f91b944cab
commit
1a14a38ff7
2 changed files with 22 additions and 1 deletions
|
@ -206,7 +206,7 @@ jQuery.extend({
|
|||
var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings);
|
||||
|
||||
var jsonp, status, data,
|
||||
callbackContext = s.context || s,
|
||||
callbackContext = origSettings && origSettings.context || s,
|
||||
type = s.type.toUpperCase();
|
||||
|
||||
// convert data if not already a string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue