You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The third parameter, the useCapture parameter, is already false by default. This confuses newcomers, also combined with the fact that event capturing is a not so easy concept to grasp.
This pattern comes from around 2012, when you needed to define the third parameter explicitly.
Nowadays browsers, already default the parameter to false, so it can safely be omitted.
Is your feature request related to a problem? Please describe.
In examples, you may find event listeners like this:
The third parameter, the
useCapture
parameter, is already false by default.This confuses newcomers, also combined with the fact that event capturing is a not so easy concept to grasp.
This pattern comes from around 2012, when you needed to define the third parameter explicitly.
Nowadays browsers, already default the parameter to
false
, so it can safely be omitted.Reference: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
Describe the solution you'd like
Instead set:
I can contribute with some PRs if we decide to go forward with this change.
The text was updated successfully, but these errors were encountered: