Javascript – Is it possible to use the onEventName pattern/syntax for custom events in my own class?
I've written my own JavaScript class (for a custom web component). It raises a couple of events. For instance: TagChanged To listen to this event, I (obviously) do this: myObject.addEventListener('TagChanged'), (e) => doSomething()); But is it possible to have something…