Re: Feedback from Safari on Web Notifications

On Tue, 13 Mar 2012 01:32:18 +0100, Jon Lee <jonlee@apple.com> wrote:
> So by having the event listeners as part of the options dictionary,  
> would it make sense, then, to remove the assignable attributes?  
> Therefore, the only way to modify the listeners is through  
> add/removeEventListener()?

If we make the constructor queue a task, you could still assign event  
listeners in the same task that created the constructor. That is how  
EventSource and WebSocket work. I think having on* attributes is nice if  
you just want to register a simple listener.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Tuesday, 13 March 2012 08:45:12 UTC