diff options
author | John Resig <jeresig@gmail.com> | 2009-11-11 14:29:01 -0500 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-11-11 14:29:01 -0500 |
commit | c2101245c07afdb831b0c79869c7263420407b67 (patch) | |
tree | 5f48fd0b577879d148fafc4cf2af413b82dae339 /src | |
parent | 7c4144fab314d98b85303d01ab904bb711bc2ecc (diff) | |
download | jquery-c2101245c07afdb831b0c79869c7263420407b67.tar.gz jquery-c2101245c07afdb831b0c79869c7263420407b67.zip |
Pass in the XHR object as the third argument to the success callback (which helps $.get, $.post, and load). Fixes #3363.
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js index a9f47ddb2..201636dfa 100644 --- a/src/ajax.js +++ b/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 |