Re: [sensors] Proximity Events

On May 16, 2012, at 21:40 , Doug Turner wrote:
> Basically yes.  You can think of a system where the proximity sensor is always on (in practice we don't do this).  When someone registers for an event, there is a state change from unknown->known.  We fire this as a proximity event to the registered event listener.

I'm happy with this solution, and Jonas's arguments make a lot of sense.

I would just like to make sure that we all agree that this is different from "ISSUE-113: AddEventListener in Battery Status has side effects" [0]. We closed that issue because Battery ended up using a different design for which the problem did no manifest, but we didn't reach consensus on whether this was a good thing or not. If it's not different and the same issue applies here, the "right" thing to do would be to prod those who thought it a bad design (Anne comes to mind) so that they may voice their concerns.

[0] http://www.w3.org/2009/dap/track/issues/113

-- 
Robin Berjon - http://berjon.com/ - @robinberjon

Received on Monday, 21 May 2012 11:32:43 UTC