Skip to content

Instantly share code, notes, and snippets.

@dmethvin
Created September 22, 2011 15:17
Show Gist options
  • Save dmethvin/1235041 to your computer and use it in GitHub Desktop.
Save dmethvin/1235041 to your computer and use it in GitHub Desktop.
var originalEvent = event,
propHook = jQuery.event.propHooks[ event.type ];
event = jQuery.Event( originalEvent );
// If hook returns false, it doesn't want anything else done
if ( propHook && propHook( event, originalEvent ) === false ) {
return event;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment