Re: [DOMCore] Making event initializing easier

On Sat, 25 Jun 2011, Anne van Kesteren wrote:
> > 
> > generic except for the argument names, but you can just refer to the 
> > arguments by position rather than name. Then there'd be just one prose 
> > line and some IDL each time.
> 
> 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?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Saturday, 25 June 2011 16:49:18 UTC