Skip to content

Instantly share code, notes, and snippets.

@jameshopkins
Last active August 29, 2015 14:08
Show Gist options
  • Save jameshopkins/0a2aa3ad70d34ba1cc02 to your computer and use it in GitHub Desktop.
Save jameshopkins/0a2aa3ad70d34ba1cc02 to your computer and use it in GitHub Desktop.
Get the original event handler for which a jQuery event was invoked from
/**
* Return an event type array for a jQuery object.
*
* Credit to http://stackoverflow.com/users/511795/shanimal
*/
// Return an arry of 'scroll' events attached to 'window'
$._data($(window).get(0), "events").scroll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment