If a custom event created via CustomEvent
is dispatched, what is the method to cancel it in listeners to prevent event's main purpose?
E.g. An overlay is clicked by a user, then it emits an event, but it must be up to some code to decide if to hide the overlay or leave it untouched.
UPDATE It's a share-knowledge question, I know the answer but try to impart it to the others.