Pass in the XHR object as the third argument to the success callback (which helps $.get, $.post, and load). Fixes #3363.
This commit is contained in:
parent
7c4144fab3
commit
c2101245c0
|
@ -469,7 +469,7 @@ jQuery.extend({
|
|||
function success(){
|
||||
// If a local callback was specified, fire it and pass it the data
|
||||
if ( s.success ) {
|
||||
s.success.call( callbackContext, data, status );
|
||||
s.success.call( callbackContext, data, status, xhr );
|
||||
}
|
||||
|
||||
// Fire the global callback
|
||||
|
|
Loading…
Reference in a new issue