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: Wed, 13 Jul 2011 15:55:27 +0200
To: "Andrei Popescu" <andreip@google.com>, "Anne van Kesteren" <annevk@opera.com>
Cc: Wojciech Masłowski <wmaslowski@opera.com>, "Bjoern Hoehrmann" <derhoermi@gmx.net>, public-geolocation <public-geolocation@w3.org>
Message-ID: <op.vyj8ypwb64w2qv@annevk-macbookpro.local>
On Wed, 13 Jul 2011 15:38:18 +0200, Anne van Kesteren <annevk@opera.com>  
wrote:
> I do not really see how it contradicts it. Setting the attribute does  
> that *and* causes an event to be dispatched (or starts some process in  
> the case of MessagePort). The pattern was discussed a while back on the  
> WHATWG list.

By the way I am not saying you should use this pattern. Maybe as Björn  
indicated you need another approach to this API. Have the information  
hanging off from the Navigator object somewhere and dispatch an event  
using the basic Event interface when the information has changed.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Wednesday, 13 July 2011 13:56:00 UTC

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