Web Workers: Reuse the Web Worker

w = undefined;

If you set the worker variable to undefined, after it has been terminated, you can reuse the code.

Web Workers: Reuse the Web Worker — Structure map

Clickable & Draggable!

Web Workers: Reuse the Web Worker — Related pages: