Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. {
  2. click: [function1, function2],
  3. change: [function3],
  4. blur: [function4, function5, function6]
  5. }
  6.  
  7. // List bound events:
  8. console.dir( jQuery('#elem').data('events') );
  9.  
  10. // Log ALL handlers for ALL events:
  11. jQuery.each($('#elem').data('events'), function(i, event){
  12. jQuery.each(event, function(i, handler){
  13. console.log( handler['handler'].toString() );
  14. });
  15. });
  16.  
  17. // You can see the actual functions which will occur
  18. // on certain events; great for debugging!
  19.  
  20. var elem = $('#someid')[0];
  21. var data = jQuery.hasData( elem ) && jQuery._data( elem );
  22. console.log(data.events);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement