Re: [sensors] Device Proximity (was: Device light and proximity sensor)

On Wednesday, May 9, 2012 at 9:49 PM, Tran, Dzung D wrote:

> Also, What happens when a page register for the same event multiple times? 
> Would you get multiple callbacks? I don't see a use case where you would want to do this, beside a programming mistake.

This is fine, as it de-cuples components from the events: 

window.addEventListener("proximity", menu.pChange);
window.addEventListener("proximity", fadeScreen);

Received on Wednesday, 9 May 2012 21:00:18 UTC