Re: Battery Status Events Playground

Hi,

On 8.9.2011, at 20.12, ext Josh Soref wrote:

>> I created a demo which implements the Battery Status Events
>> specification and (naively) simulates battery-powered user agent
>> behavior in JavaScript.
> 
>> The Battery Status Events Playground is at:
>> 
>>  http://dev.w3.org/2009/dap/docs/battery-status/battery-status.html
>> 
>> A modern browser with support for <input type="range"> is required
>> (e.g. recent Chrome, Safari or Opera, sadly Firefox does not support
>> this feature at the moment).
> 
> To make things more realistic, you should set it up so that it doesn't fire another event if the current value matches the previous value -- i.e. the default state in Firefox.
> 
> This also applies to Chrome when it hits level=0 (isPlugged=false) and level=100 (isPlugged=true).

Thanks for this catch. I've now committed a bug fix for this.

-Anssi

Received on Friday, 9 September 2011 05:13:23 UTC