W3C home > Mailing lists > Public > www-svg@w3.org > January 2005

Re: DOM Level 3 events

From: Peter Sorotokin <psorotok@adobe.com>
Date: Tue, 18 Jan 2005 15:07:48 -0800
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: Jon Ferraiolo <jon.ferraiolo@adobe.com>, Cameron McCormack <cam-www-svg@aka.mcc.id.au>, www-svg@w3.org
Message-id: <5.2.0.9.2.20050118150500.04d41580@mailsj-v1.corp.adobe.com>

At 02:44 PM 1/18/2005 -0600, Boris Zbarsky wrote:
>Peter Sorotokin wrote:
>>>2)  That the implementation is keeping the event listeners for the two 
>>>types in
>>>     separate lists (is this desirable?  Should registering a listener 
>>> for both
>>>     types involved make it get the event twice?).
>>You can do it per-listener rather than on per-list basis; but I'd keep 
>>two separate lists.
>
>In other words, a listener registered for both event names would indeed 
>get the event twice?

No, in this case each event listener entry in the list would have to store 
an event type for which it was registered (also would be needed for 
unregistering).

Peter


>Note that this is something that the spec should clearly state if it goes 
>this route.
>
>-Boris
Received on Tuesday, 18 January 2005 23:07:57 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:29 GMT