Skip to content

Instantly share code, notes, and snippets.

@dewang
Forked from nate8684/fastclick
Created May 25, 2012 08:27
Show Gist options
  • Save dewang/2786626 to your computer and use it in GitHub Desktop.
Save dewang/2786626 to your computer and use it in GitHub Desktop.
fastclick
$(document).bind( "pageload", function(){
// Check if the body tag wants fastclick buttons to be set up
var fast_click = $("body").jqmData("fastclick");
if (fast_click != 'campusdetail') {
initFastButtons();
} else {
// Do you actually need to do anything here?
// Try leaving it as-is and see if the fastbuttons are cached.
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment