W3C home > Mailing lists > Public > public-device-status@w3.org > November 2011

Re: [vibration] Preliminary thoughts on the vibrator spec

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 17 Nov 2011 09:44:23 +1300
Message-ID: <4EC420A7.80501@mcc.id.au>
To: Justin Lebar <jlebar@mozilla.com>
CC: Anssi Kostiainen <anssi.kostiainen@nokia.com>, ext Robin Berjon <robin@berjon.com>, ext Jonas Sicking <jonas@sicking.cc>, public-device-status@w3.org, "public-device-apis@w3.org WG" <public-device-apis@w3.org>
On 17/11/11 4:55 AM, Justin Lebar wrote:
> Just to check, the types |unsigned long| and |unsigned long[]| will
> catch any numeric type, right?  So we don't have to worry if someone
> computes a vibration time in JS and passes in 100.0003?  That's how I
> read the WebIDL spec, for what little that's worth.

Yes, vibrate(100.003) will be treated as vibrate(100) and
vibrate([100.003]) as vibrate([100]).
Received on Wednesday, 16 November 2011 20:45:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 November 2011 20:45:13 GMT