Skip to main content

Bug Tracker

Side navigation

Ticket #3591: jquery-ajax-xhr.patch
File jquery-ajax-xhr.patch, 0.4 KB (added by alan.castro, November 10, 2008 08:36PM UTC)

adds xhr object to $.ajax success callback params.

Index: ajax.js
===================================================================
--- ajax.js	(revision 5939)
+++ ajax.js	(working copy)
@@ -400,7 +400,7 @@
 		function success(){
 			// If a local callback was specified, fire it and pass it the data
 			if ( s.success )
-				s.success( data, status );
+				s.success( data, status, xhr );
 
 			// Fire the global callback
 			if ( s.global )

Download in other formats:

Original Format