event-override
The event-override snippet proxies events and event handlers to defuse events or change their attributes. It works by proxying addEventHandler and the original Event class with a CustomEvent class.
Parameters
|
Name |
Description |
Mandatory |
Default |
|---|---|---|---|
|
eventType |
The type of the event to target (e.g., click, mouseover, someCustomEvent). |
Yes |
n.a. |
|
mode |
Operation mode: |
Yes |
n.a. |
|
needle |
Needle to look for in the event listener function. |
No |
'' |
Filter examples
|
Filter |
Result |
|---|---|
|
|
Disables all event listeners for the click event. |
|
|
Disables all event listeners for the custom event. |
|
|
Makes |