W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2012

Re: Adding `detail` to Event

From: David Håsäther <hasather@gmail.com>
Date: Wed, 28 Nov 2012 13:23:46 +0100
Message-ID: <CAMPaTMfbrejXT238k+KryiPnSpr4d7rfcgSs5m8JtOL16Ss1kg@mail.gmail.com>
To: www-dom@w3.org
On Wed, Nov 28, 2012 at 1:18 PM, Olli Pettay <Olli.Pettay@helsinki.fi> wrote:

>>> UIEvent has already .detail, but not the same type as
>>> CustomEvent.detail, so we can't move .detail to Event, but perhaps
>>> we could add some other property. .additionalData? A bit long.
>>
>>
>> Yea, UIEvent has detail, so you could overwrite it then. This is not a
>> problem as far as I can see.
>
>
>
> It is a problem because the type of .detail in UIEvent is different than
> the type in .detail in Custom event.

Sure, but if you pass `detail` with the UIEvent you have explicitly
overwritten it. What I had in mind was to only use it for custom
events. But another name is also an option, `customData` or something.

--
David Håsäther
Received on Wednesday, 28 November 2012 12:24:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 28 November 2012 12:24:39 GMT