Created
May 29, 2015 14:07
-
-
Save genecyber/5e9d2dd5363efdbd79be to your computer and use it in GitHub Desktop.
Namespaced click binding
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 bindClicks() { | |
/* Unbind by localnamespace (Awesome way to unbind a selective everything) */ | |
$(document).unbind(".customBindings") | |
/* Join Chat */ | |
$("a[href='#lobby']").bind("click.customBindings", function () { | |
joinLobby() | |
}) | |
/* Save Generated Address */ | |
$(document).on('click.customBindings', '#saveKeysBtn', function () { | |
saveGeneratedAddress() | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment