Hacker News new | past | comments | ask | show | jobs | submit login

In older browsers, useCapture is NOT an optional parameter, and in most cases you do NOT want to use event capture instead of event bubbling. There's no trivial way to support addEventListener(event, handler, { passive: true }) on both new and old browsers without that really ugly feature detection code in the article.



> In older browsers, useCapture is NOT an optional parameter

Which browsers are those?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: