Re: [battery] Should getBattery() always return the same promise?

On July 4, 2014 at 2:46:10 PM, Rick Waldron (waldron.rick@gmail.com) wrote:
> Simply put, the change from:
> 
> navigator.battery
> 
> to:
> 
> navigator.getBattery().then(function(battery) {
> ...
> });
> 
> 
> ...changes the API from good to bad and ignores the two years of
> implementation experience that has accumulated for the latter. Perhaps
> before this change is accepted, or even seriously considered, the existing
> Candidate Recommendation specification can be implemented and studied.


I have to agree with Rick. There doesn't appear to be a valid reason to make this change.

Received on Friday, 4 July 2014 19:56:18 UTC