This can be handy for a quick event dispatching without having to create a custom event class. This one in particular is "bubbling up" (true), and not cancelable (false).
- this.dispatchEvent (new Event("somethingHappened", true, false));
- this.addEventListener ("somethingHappened", yourFunction);
You need to login to post a comment.