Re: [battery] addEventListener side effects, ordering & boundary crossing of battery{low, critical}, window.on*

On Sep 4, 2011, at 23:42 , Joćo Eiras wrote:
> On a general note, I do not understand well the need for baterrylow/critical events. Would be far simpler to just use level, and two extra properties in the event object like lowLevelThreshold, criticalLevelThreshold with the user agent's configured values. Then the app could just check the current level against the configured one. A suggestion to make it simpler.

This works only on the assumption that for a given platform low and critical levels are numeric thresholds. A smart platform might conceivably compute these levels based on the rate of consumption rather than fixed absolute values.

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

Received on Tuesday, 6 September 2011 11:08:46 UTC