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

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

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 12 Jul 2011 13:41:38 +0200
To: "Andrei Popescu" <andreip@google.com>
Cc: "Doug Turner" <doug.turner@gmail.com>, "Steve Block" <steveblock@google.com>, public-geolocation <public-geolocation@w3.org>
Message-ID: <op.vyh73on064w2qv@annevk-macbookpro.local>
On Tue, 12 Jul 2011 13:37:11 +0200, Andrei Popescu <andreip@google.com>  
> Right. Here's the specification on when to fire the event:
> "The event should fire whenever a significant change in orientation
> occurs (...) In addition, when a new listener registers for the event,
> implementations should fire the event as soon as sufficiently fresh
> data is available."
> Is there anything not clear / confusing in this statement? If you were
> to implement, would you know what to do?

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.

Anne van Kesteren
Received on Tuesday, 12 July 2011 11:42:17 UTC

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