jQuery view bound events in debugger IE
I have a problem with binding events and I need to see if an event is bound on any element. For example when I ha开发者_如何学Pythonve this code:
jQuery(selector).bind('load.background', function() { callback.call(this, bgPath);});
Where is it shown in debugger? I need to see it in IE developer tools, and there when I see my variable in watches it look like on this image:
When I look in the Events tree (marked with small lightning) there is null as load value (even in case callback call succeed)
So where can I see if and what is bound on any element?
EDIT: Even in Chrome debugger is it null
You are not using jQuery selectors correctly. What is "load" refering to in your selector?
If it is the id of an element then the correct selector will be
jQuery(selector).bind('#load.background', function() { callback.call(this, bgPath);});
精彩评论