On 9/2/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
> If ajaxStop is called before the setTimeout callback in ajaxStart is run,
> active will be false, so the addClass() on line 9 won't get executed.
> Without this, if ajaxStop ran before the setTimeout callback, the
> removeClass() would happen before the addClass(), so the class would never
> get removed.

Why would ajaxStop ever be called before ajaxStart?

1. ajax request begins
2. ajaxStart() begins counting
3. ajax request ends before timeout period
4. ajaxStart() is canceled (addClass() never gets executed)
5. ajaxStop() starts and calls removeClass()
6. nothing is displayed

Is that the wrong progression?


Thanks,
Chris.

Reply via email to