Ajax.activeRequestCount is not decremented after an exception or a failure.
This patch fixes the problem:
Index: D:/dev/main2/Prototype/src/ajax.js
===================================================================
--- D:/dev/main2/Prototype/src/ajax.js (revision 9167)
+++ D:/dev/main2/Prototype/src/ajax.js (working copy)
@@ -41,7 +41,9 @@
Ajax.Responders.register({
onCreate: function() { Ajax.activeRequestCount++ },
- onComplete: function() { Ajax.activeRequestCount-- }
+ onComplete: function() { Ajax.activeRequestCount-- },
+ onFailure: function() { Ajax.activeRequestCount-- },
+ onException: function() { Ajax.activeRequestCount-- }
});
Ajax.Base = Class.create({