From 8c8f685a911c811e9b998958dd453a6a2b9d5940 Mon Sep 17 00:00:00 2001 From: jeresig Date: Mon, 1 Mar 2010 19:31:13 -0500 Subject: [PATCH] We don't want to increment the Ajax counter if there isn't a global event. --- src/ajax.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ajax.js b/src/ajax.js index c5191ef6e..bf11a531d 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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" ); } -- 2.39.5