mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
We don't want to increment the Ajax counter if there isn't a global event.
This commit is contained in:
parent
a4043cdcbf
commit
8c8f685a91
@ -278,10 +278,8 @@ jQuery.extend({
|
||||
s.url += (rquery.test(s.url) ? "&" : "?") + s.data;
|
||||
}
|
||||
|
||||
jQuery.active++;
|
||||
|
||||
// Watch for a new set of requests
|
||||
if ( s.global && jQuery.active === 1 ) {
|
||||
if ( s.global && jQuery.active++ === 0 ) {
|
||||
jQuery.event.trigger( "ajaxStart" );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user