W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2011

Re: [DOMCore] Making event initializing easier

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 25 Jun 2011 18:58:23 +0200
To: "Ian Hickson" <ian@hixie.ch>
Cc: "Jonas Sicking" <jonas@sicking.cc>, "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <op.vxm5flpr64w2qv@anne-van-kesterens-macbook-pro.local>
On Sat, 25 Jun 2011 18:48:44 +0200, Ian Hickson <ian@hixie.ch> wrote:
> On Sat, 25 Jun 2011, Anne van Kesteren wrote:
>> Well no. You also need to define the event initialization dictionary and
>> how it maps to the event. I do not think that can be done in a generic
>> way.
>
> You have to give the IDL for the dictionary, but can't you just say that
> the dictionary fields map 1:1 with the fields of the same name on the
> event object? What needs defining?

The way it is defined now is that events have a set of concepts associated  
with them and the object members return those. E.g. .bubbles "internally"  
is the bubble flag. It does not make sense if the event dictionary would  
refer directly to the properties. I suppose we could revamp the way events  
are defined though, but I am not sure how.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Saturday, 25 June 2011 16:58:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:07 GMT