]> source.dussan.org Git - jquery.git/commitdiff
Make sure prefilters have been called and transport has been selected before sending...
authorjaubourg <j@ubourg.net>
Sun, 9 Jan 2011 15:32:51 +0000 (16:32 +0100)
committerjaubourg <j@ubourg.net>
Sun, 9 Jan 2011 15:32:51 +0000 (16:32 +0100)
src/ajax.js

index 207ef13aa37d48b796b4b17e2c882cbdb0e17a17..e910aa56f73d78c92e347450de6e3a867af68d6b 100644 (file)
@@ -532,14 +532,14 @@ jQuery.extend({
                        s.data = jQuery.param( s.data , s.traditional );
                }
 
+               // Get transport
+               transport = jQuery.ajax.prefilter( s ).transport( s );
+
                // Watch for a new set of requests
                if ( s.global && jQuery.active++ === 0 ) {
                        jQuery.event.trigger( "ajaxStart" );
                }
 
-               // Get transport
-               transport = jQuery.ajax.prefilter( s ).transport( s );
-
                // If no transport, we auto-abort
                if ( ! transport ) {