On Sat, Aug 18, 2001 at 12:17:20PM -0500, Curt Arnold wrote: > > You're right there, that's what the spec currently says. But the spec is > > wrong, though. It is meant to say the opposite. Meaning an EventListener should be called even if another listener in the list currently being processed removes it? I think the implementation issue may become even more difficult in languanges with explicit memory management though. Currently, my implementation frees a ListenerEntry struct when removeEventListener is called. As is, this would result in dereferencing a dangling pointer if dispatchEvent attempts to trigger a listener after it has been removed. I suspect I must collect the pointers to the actull functions to be called for each listener and store that in an array (i.e. pre-dereference the listener functions). I'm glad I asked. Thanks Curt, Mike -- Wow a memory-mapped fork bomb! Now what on earth did you expect? - lkmlReceived on Saturday, 18 August 2001 20:11:17 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:24:54 GMT