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:
John Resig 2009-11-11 14:29:01 -05:00
parent 7c4144fab3
commit c2101245c0

View file

@ -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