From: John Resig Date: Wed, 11 Nov 2009 19:29:01 +0000 (-0500) Subject: Pass in the XHR object as the third argument to the success callback (which helps... X-Git-Tag: 1.4a1~66 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c2101245c07afdb831b0c79869c7263420407b67;p=jquery.git Pass in the XHR object as the third argument to the success callback (which helps $.get, $.post, and load). Fixes #3363. --- 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