- 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>
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