W3C home > Mailing lists > Public > public-webapi@w3.org > March 2007

XHR and clearing event listeners

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Tue, 06 Mar 2007 21:02:31 +0200
Message-ID: <45EDBAC7.1010707@helsinki.fi>
To: web API <public-webapi@w3.org>
CC: annevk@opera.com

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:57 GMT