Skip to content

Instantly share code, notes, and snippets.

@adeolaawoyemi
Created September 21, 2011 09:14
Show Gist options
  • Save adeolaawoyemi/1231640 to your computer and use it in GitHub Desktop.
Save adeolaawoyemi/1231640 to your computer and use it in GitHub Desktop.
wait for jQuery before using it to bind
var bindTimer = setInterval(function() {
if ("undefined" != typeof jQuery && isMobileDevice) {
$('.myclass').bind('click', clickHandlerToMobilePage);
clearTimeout(bindTimer);
}
}, 50);
@psalter27
Copy link

damn, obviously can't do that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment