From c2101245c07afdb831b0c79869c7263420407b67 Mon Sep 17 00:00:00 2001 From: John Resig Date: Wed, 11 Nov 2009 14:29:01 -0500 Subject: [PATCH] Pass in the XHR object as the third argument to the success callback (which helps $.get, $.post, and load). Fixes #3363. --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5