XHR and clearing event listeners

Hi,

I wonder why the current XMLHttpRequest draft has the following:
"If something goes wrong (infinite loop, network errors) the state must 
be set to loaded and all members (excluding readyState) of the object 
must be set to their initial value. Also, if async is set to false, a 
NETWORK_ERR exception must be raised. In addition, all registered event 
listeners must be removed."
What is the reason to remove all event listeners?


-Olli

Received on Tuesday, 6 March 2007 19:03:01 UTC