D
David Karr
I'm reviewing some manuscript code that demonstrates a primitive Ajax
implementation. I noticed that the code calls "open()" before it
assigns the "onreadystatechange" callback function. Theoretically, it
seems possible this could be a difficult-to-hit race condition, where
the machinery tries to call the onreadystatechange callback before
it's assigned. The question is, is this really possible in any
existing, even legacy, browser?
implementation. I noticed that the code calls "open()" before it
assigns the "onreadystatechange" callback function. Theoretically, it
seems possible this could be a difficult-to-hit race condition, where
the machinery tries to call the onreadystatechange callback before
it's assigned. The question is, is this really possible in any
existing, even legacy, browser?