[whatwg] Web Workers: include simple example for shared workers

On Thu, 25 Feb 2010 18:58:37 +0100, Drew Wilson <atwilson at google.com>  
wrote:

> BTW, I think it's valuable to point out in the example that
> MessageEvent.target == the port that received the message (so we don't  
> need
> to use a closure as in the example below - just use
> event.target.postMessage()).

Yes, I think using this.postMessage() should also work.

-- 
Simon Pieters
Opera Software

Received on Thursday, 25 February 2010 11:06:58 UTC