Permalink
Browse files

Pass in the XHR object as the third argument to the success callback …

…(which helps $.get, $.post, and load). Fixes #3363.
  • Loading branch information...
1 parent 7c4144f commit c2101245c07afdb831b0c79869c7263420407b67 @jeresig jeresig committed Nov 11, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax.js
View
2 src/ajax.js
@@ -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

0 comments on commit c210124

Please sign in to comment.