So I’m experimenting with using custom events to transfer data between dependencies of a object and the object itself. Simple right?
But that’s not the case with dispatchEvent().
Any event handlers listening to an event sent by dispatchEvent() are executed first, then the code following dispatchEvent() is done.
Who’d thunk it? Well, probably just about everybody but myself.
You can read all about it in the MDN docs.
Web Tinkerer. No, not like Tinkerbell.