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


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?

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:23 UTC