Skip to content
Permalink
Browse files

Make sure prefilters have been called and transport has been selected…

… before sending any global event (in case the "global" option has been changed).
  • Loading branch information...
jaubourg committed Jan 9, 2011
1 parent 6348750 commit c55a76a23fdf8e9b22d9792a0f3a39051cc33993
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/ajax.js
@@ -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 ) {

0 comments on commit c55a76a

Please sign in to comment.
You can’t perform that action at this time.