Created
October 31, 2020 21:52
-
-
Save Yamo93/930405d4cecc37b586eeca5fffbcb502 to your computer and use it in GitHub Desktop.
Simple unsubscribe method
This file contains 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
function unsubscribe(eventName) { | |
delete subscribers[eventName]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment