Store a map for each event of all original listeners and their "patched" version. So when a listener is removed by the user, the corresponding patched function will be also removed.
Generated using TypeDoc
Store a map for each event of all original listeners and their "patched" version. So when a listener is removed by the user, the corresponding patched function will be also removed.