Commit c55a76a2 authored by jaubourg's avatar jaubourg

Make sure prefilters have been called and transport has been selected before...

Make sure prefilters have been called and transport has been selected before sending any global event (in case the "global" option has been changed).
parent 63487505
...@@ -532,14 +532,14 @@ jQuery.extend({ ...@@ -532,14 +532,14 @@ jQuery.extend({
s.data = jQuery.param( s.data , s.traditional ); s.data = jQuery.param( s.data , s.traditional );
} }
// Get transport
transport = jQuery.ajax.prefilter( s ).transport( s );
// Watch for a new set of requests // Watch for a new set of requests
if ( s.global && jQuery.active++ === 0 ) { if ( s.global && jQuery.active++ === 0 ) {
jQuery.event.trigger( "ajaxStart" ); jQuery.event.trigger( "ajaxStart" );
} }
// Get transport
transport = jQuery.ajax.prefilter( s ).transport( s );
// If no transport, we auto-abort // If no transport, we auto-abort
if ( ! transport ) { if ( ! transport ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment