-
-
Notifications
You must be signed in to change notification settings - Fork 538
Closed
Description
Event listeners are created and sometimes not removed. This leads to memory leaks.
This happens when isCaptureMode
is true, since removeEventListener
needs the same useCapture
flag as used in addEventListener
.
Possible fixes include:
- calling
removeEventListener
twice withtrue
andfalse
foruseCapture
. - storing the
useCapture
value used byaddEventListener
and using it when callingremoveEventListener
. - providing
currentTarget
to determineisCaptureMode
when callingremoveEventListener
.
Metadata
Metadata
Assignees
Labels
No labels