- From: Jonas Sicking <jonas@sicking.cc>
- Date: Tue, 8 May 2012 16:02:14 -0700
On Tue, May 8, 2012 at 3:33 PM, Doug Turner <dougt at mozilla.com> wrote: > > On May 8, 2012, at 3:26 PM, Jonas Sicking wrote: > >> The reason that I'm not really happy with this API is the fact that it >> forces pages to remove all event listeners in order to shut down a >> sensor. > > True. ?I haven't heard of anyone actually worrying about this. > >> It seems more author friendly to me to allow pages to keep >> event listeners registered but to have an "on/off" switch which they >> can use to control if they want the sensor to be enabled. (Setting it >> to "off" would of course only affect if events are delivered to that >> page. If another page set it to "on" the UA would still fire the >> events to the second page, and that page only). > > I do not think we have similar on/off switch APIs for other DOM apis?. Do we? We haven't really had any other pieces of hardware which a page could want to switch on/off so I'm not sure the question really applies. / Jonas
Received on Tuesday, 8 May 2012 16:02:14 UTC