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

DeviceOrientation and addEventListener()

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 06 Sep 2011 11:38:45 +0200
To: public-geolocation <public-geolocation@w3.org>
Message-ID: <op.v1drqvx364w2qv@g239.guest-int.opera.com>
http://dev.w3.org/geo/api/spec-source-orientation.html still changes the  
semantics of addEventListener(). I would like at least a note be added  
that this is controversial. Or please raise it on www-dom@w3.org as I  
requested.


http://lists.w3.org/Archives/Public/public-device-apis/2011Sep/0005.html  
has an alternative design for a similar API that might work here too.  
Basically you create a source object where events can be dispatched upon.

   var orientationEventTarget = new OrientationEventSource();
   orientationEventTarget.onXXX = function() { ... }


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 6 September 2011 09:39:11 UTC

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