re: A Guide to Handling Browser Events VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I mean there are two ways to add event listener in capture phase: node.addEventListener('click', e => console.log(e.eventPhase), true); node.a...

Hi Eugene.

They do exactly the same thing. true is a shorthand for {capture: true}.

Thanks for reading my article.

Ahh, sorry misunderstood what you were asking. 🙃 I believe Sarah just answered you.

code of conduct - report abuse