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 a9f47dd..201636d 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