Last active
August 29, 2015 14:08
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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