W3C home > Mailing lists > Public > public-web-notification@w3.org > March 2012

Re: Feedback from Safari on Web Notifications

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 13 Mar 2012 09:44:31 +0100
To: "James Graham" <jgraham@opera.com>, "Jon Lee" <jonlee@apple.com>
Cc: "Ojan Vafai" <ojan@chromium.org>, "John Gregg" <johnnyg@google.com>, "Maciej Stachowiak" <mjs@apple.com>, public-web-notification@w3.org, "Ted O'Connor" <eoconnor@apple.com>
Message-ID: <op.wa3o8hz064w2qv@annevk-macbookpro.local>
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
Received on Tuesday, 13 March 2012 08:45:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:13 UTC