Re: On Battery API

Le mercredi 15 juin 2011 à 09:48 -0700, Doug Turner a écrit :
> 2) I'd like two new events -- BatteryLow and BatteryCriticallyLow.
> Other than people implementing battery widgets, I am not sure that
> |battery.level| means anything -- not all batteries are created equal,
> they have different decay rates, and I am not sure we want web
> developers having to calculate when the battery is actually "low".

+1 on using events with stronger semantics.

Dom

Received on Wednesday, 29 June 2011 07:47:22 UTC