[Webkit-unassigned] [Bug 174313] Implement EventTarget constructor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 17 15:09:43 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=174313

Lars Knudsen <larsgk at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |larsgk at gmail.com

--- Comment #4 from Lars Knudsen <larsgk at gmail.com> ---
This feature makes it possible to easily do ES6 modules that can act as services (think Angular 'service'), which has a great value for especially enterprise apps done in vanilla JS.

Example:

class _MyService extends EventTarget {
...
    this.dispatchEvent(new CustomEvent('new-data', {detail: data}));
...
};

export const MyService = new _MyService();

.

In my current team, we are making an (internal) app in a larger enterprise, where we need to have a small payload, fast execution and rendering - using lit-element and vanilla JS.  In order to support iDevices, we will have to polyfill this, which is a bit sad ;)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190617/c8d752e1/attachment-0001.html>


More information about the webkit-unassigned mailing list