Skip to content

Instantly share code, notes, and snippets.

@Yamo93
Created October 31, 2020 21:52
Show Gist options
  • Save Yamo93/930405d4cecc37b586eeca5fffbcb502 to your computer and use it in GitHub Desktop.
Save Yamo93/930405d4cecc37b586eeca5fffbcb502 to your computer and use it in GitHub Desktop.
Simple unsubscribe method
function unsubscribe(eventName) {
delete subscribers[eventName];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment