Skip to content

Commit

Permalink
Pass in the XHR object as the third argument to the success callback …
Browse files Browse the repository at this point in the history
…(which helps $.get, $.post, and load). Fixes #3363.
  • Loading branch information
jeresig committed Nov 11, 2009
1 parent 7c4144f commit c210124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ajax.js
Expand Up @@ -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
Expand Down

0 comments on commit c210124

Please sign in to comment.