Make sure regular settings object is set as context for all Ajax requests, if none is specified. Fixes #5838.
This commit is contained in:
parent
6618ff0b0a
commit
155ecf42a0
2 changed files with 38 additions and 14 deletions
|
@ -530,7 +530,7 @@ jQuery.extend({
|
|||
handleError: function( s, xhr, status, e ) {
|
||||
// If a local callback was specified, fire it
|
||||
if ( s.error ) {
|
||||
s.error.call( s.context || window, xhr, status, e );
|
||||
s.error.call( s.context || s, xhr, status, e );
|
||||
}
|
||||
|
||||
// Fire the global callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue