W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] createEvent() in Web Workers?

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 2 Dec 2009 05:36:17 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0912020519040.15540@hixie.dreamhostps.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 1 December 2009 21:36:17 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:19 UTC