[whatwg] createEvent() in Web Workers?

Ian Hickson ian at hixie.ch
Tue Dec 1 21:36:17 PST 2009


On Thu, 26 Nov 2009, Simon Pieters wrote:
>
> There's ErrorEvent.initErrorEvent, and dispatchEvent is exposed in 
> workers, but there's no createEvent (because there's no document). Are 
> there use cases for sending events in a worker? Should we expose 
> createEvent somewhere? Should we remove initErrorEvent?

I don't want to remove initErrorEvent() because that would just cause 
troubles later if we ever add createEvent().

In the meantime, though, I don't see a really compelling reason to add 
event creation to the worker API set, so I haven't changed anything there 
for now. If DOM3 Events adds constructors or whatever, it can expose them 
to Workers easily enough.

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


More information about the whatwg mailing list