Re: [ambient light events LC] Feedback

On Tue, Dec 18, 2012 at 1:01 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> enum LightLevel { "dim", "normal", "bright" };
> [Constructor (DOMString type, optional LightLevelEventInit eventInitDict)]
> interface LightLevelEvent : Event {
>     readonly attribute LightLevel? value;
> };
> dictionary LightLevelEventInit : EventInit {
>     LightLevel? value;
> };

The enum should not be nullable. If you use this drop the ? as that is
not needed here.


-- 
http://annevankesteren.nl/

Received on Tuesday, 18 December 2012 12:31:12 UTC