Re: [XHR] can't get this.readyState to work

Stewart Brodie wrote:
> Out of curiousity, why has event.target not always been the XMLHttpRequest
> object (in Gecko)?  Was it simply an oversight?

onreadystatechange used to not be a DOMEventListener, and therefore the setup 
that goes into making the call into a DOMEventListener wasn't really happening. 
  In particular it wasn't actually getting passed an event object, so 
event.target tended to throw exceptions like |event has no properties|.

-Boris

Received on Tuesday, 14 August 2007 13:02:15 UTC