]> source.dussan.org Git - jquery.git/commitdiff
Pass in the XHR object as the third argument to the success callback (which helps...
authorJohn Resig <jeresig@gmail.com>
Wed, 11 Nov 2009 19:29:01 +0000 (14:29 -0500)
committerJohn Resig <jeresig@gmail.com>
Wed, 11 Nov 2009 19:29:01 +0000 (14:29 -0500)
src/ajax.js

index a9f47ddb27300831c3c99f23d1d8f6c1785b7a74..201636dfa2509756083088eac3c6e46682bcd491 100644 (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