Skip to content

Instantly share code, notes, and snippets.

@aaronmcadam
Created May 13, 2010 01:56
Show Gist options
  • Save aaronmcadam/399390 to your computer and use it in GitHub Desktop.
Save aaronmcadam/399390 to your computer and use it in GitHub Desktop.
A way to tell if the click is actually a user-made click and not a triggered one
$.fn.trigger = function (type) { if (type == 'click') return false; return this.trigger (type); }
@aaronmcadam
Copy link
Author

A way to tell if the click is actually a user-made click and not a triggered one

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