Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- click: [function1, function2],
- change: [function3],
- blur: [function4, function5, function6]
- }
- // List bound events:
- console.dir( jQuery('#elem').data('events') );
- // Log ALL handlers for ALL events:
- jQuery.each($('#elem').data('events'), function(i, event){
- jQuery.each(event, function(i, handler){
- console.log( handler['handler'].toString() );
- });
- });
- // You can see the actual functions which will occur
- // on certain events; great for debugging!
- var elem = $('#someid')[0];
- var data = jQuery.hasData( elem ) && jQuery._data( elem );
- console.log(data.events);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement