JavaScript for WordPress Forums Vanilla JavaScript Events: dispatchEvent() Reply To: Events: dispatchEvent()

Zac Gordon

Sorry for the delay on this!

Since dispatching allows you to execute events and trigger their event listeners, that statement you quoted is just reminding you that you should attach the dispatch to the same element you attached the event listener to.

Is that what you were asking?