W3C home > Mailing lists > Public > public-device-apis@w3.org > July 2014

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

From: Marcos <marcos@marcosc.com>
Date: Fri, 4 Jul 2014 15:55:49 -0400
To: Tim Volodine <timvolodine@google.com>, Rick Waldron <waldron.rick@gmail.com>
Cc: Mounir Lamouri <mounir@lamouri.fr>, Domenic Denicola <domenic@domenicdenicola.com>, public-device-apis <public-device-apis@w3.org>
Message-ID: <etPan.53b706c5.643c9869.10b95@Marcoss-MacBook-Pro.local>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:33:10 UTC