Tracks bound listeners so a module can release all of them at once.
The point is teardown: removeEventListener needs the exact (event, handler, options)
triple used at bind time, and keeping that bookkeeping at each call site is where leaks come
from. Register through this and removeAll() is enough.
Tracks bound listeners so a module can release all of them at once.
The point is teardown:
removeEventListenerneeds the exact(event, handler, options)triple used at bind time, and keeping that bookkeeping at each call site is where leaks come from. Register through this andremoveAll()is enough.