Re: [vibration] Preliminary thoughts on the vibrator spec

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 UTC