W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2012

Re: [ambient light events LC] Feedback

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 18 Dec 2012 13:30:40 +0100
Message-ID: <CADnb78hDapZmZmEMDEBEyMzJuoQMXMW0kZ6v6qmzy0yrxmnVpw@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: public-device-apis <public-device-apis@w3.org>, public-webapps <public-webapps@w3.org>
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:13 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:56 GMT