Skip to content

Instantly share code, notes, and snippets.

@getify
Created September 14, 2010 21:50
Show Gist options
  • Save getify/579849 to your computer and use it in GitHub Desktop.
Save getify/579849 to your computer and use it in GitHub Desktop.
$("#foo").click(function(e){
if (e.clientX) {
// native mouse click
}
else {
// triggered mouse click
}
});
@getify
Copy link
Author

getify commented Sep 16, 2010

@krawaller -- i mean, i understand your point. not necessarily saying it should be removed, but it should be avoided under almost all cases, just like what crockford says about the "good parts" and "bad parts" -- i definitely consider that a "bad part".

btw, there are some things that are so evil they should be removed... like "document.write"... my new banner: "document.write() must die". :)

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