Skip to content

Instantly share code, notes, and snippets.

@bloodyowl
Created December 25, 2012 21:05
Show Gist options
  • Select an option

  • Save bloodyowl/4375465 to your computer and use it in GitHub Desktop.

Select an option

Save bloodyowl/4375465 to your computer and use it in GitHub Desktop.
var clickEvent = "createTouch" in document ? "touchend" : "click"
// $(myElement).on(clickEvent, ...)
// myElement.addEventListener(clickEvent, ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment