W3C home > Mailing lists > Public > public-geolocation@w3.org > July 2011

Re: Spec update: deviceorientation event should fire when listener is first registered

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Tue, 12 Jul 2011 15:01:45 +0300
Message-ID: <4E1C37A9.5060101@helsinki.fi>
To: Anne van Kesteren <annevk@opera.com>
CC: Andrei Popescu <andreip@google.com>, Doug Turner <doug.turner@gmail.com>, Steve Block <steveblock@google.com>, public-geolocation <public-geolocation@w3.org>
On 07/12/2011 02:50 PM, Anne van Kesteren wrote:
> On Tue, 12 Jul 2011 13:42:36 +0200, Andrei Popescu <andreip@google.com>
> wrote:
>> On Tue, Jul 12, 2011 at 12:41 PM, Anne van Kesteren <annevk@opera.com>
>> wrote:
>>> I think firing when a new listener registers for the event is wrong.
>>> Tying that together goes against the event model. addEventListener()
>>> has no such side effects.
>>
>> What exactly is it wrong with it? And what alternative would you
>> suggest to solve the given problem?
>
> You could follow a similar design to http://www.whatwg.org/C#messageport
> that does have special handling for onmessage
That special handling for onmessage looks like a spec bug to me.


-Olli
Received on Tuesday, 12 July 2011 12:02:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:51:02 UTC