Created
July 28, 2023 13:04
-
-
Save itsmikita/443ecbb89546ae78b87bfead09bf0bf5 to your computer and use it in GitHub Desktop.
Remove all EventListeners assigned to a Node. #hack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* When it was not you who added the EventListeners on a Node... Remove'em all!!! | |
* | |
* @param element | |
*/ | |
const removeAllEventListeners = element => element.outerHTML += ""; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment