jQuery find events handlers registered with an object
来源:互联网 发布:windows激活密钥 编辑:程序博客网 时间:2024/05/18 15:51
http://stackoverflow.com/questions/2518421/jquery-find-events-handlers-registered-with-an-object
I need to find which event handlers are registered over an object.
For example:
$("#el").click(function() {...});$("#el").mouseover(function() {...});
$("#el")
has click and mouseover registered.
Is there a function to find out that, and possibly iterate over the event handlers?
If it is not possible on a jQuery object through proper methods, is it possible on a plain DOM object?
Answer:
As of jQuery 1.8, the event data is no longer available from the "public API" for data. Read this jQuery blog post. You should now use this instead:
jQuery._data( elem, "events" );
elem
should be an HTML Element, not a jQuery object, or selector.
Please note, that this is an internal, 'private' structure, and shouldn't be modified. Use this for debugging purposes only.
In older versions of jQuery, you might have to use the old method which is:
jQuery( elem ).data( "events" );
- jQuery find events handlers registered with an object
- Dbflow:Model object: xxxx is not registered with a Database. Did you forge an annotation?
- Solving the Problem with Events: Weak Event Handlers
- Javascript Events and Event Handlers
- 14. 11. 5. Listening to JCheckBox Events with an ItemListener
- Proactor An Object Behavioral Pattern for Demultiplexing and Dispatching Handlers for Asynchronous
- find out all attributes of an object
- object library not registered
- Objective C:Object Deallocated while key value observers were still registered with it
- IllegalStateException: Did not find registered driver with class com.mysql.jdbc.Driver
- 无法找到注册驱动Did not find registered driver with class com.mysql.jdbc.Driver
- Document Object Model Events
- 14. 11. 4. JCheckBox是否被选择 Listening to JCheckBox Events with an ActionListener
- registered as an Apple Developer
- Validate a JAXB Object Model With an XML Schema
- ASN.1 Encode an Object Identifier (OID) with OpenSSL
- post a json object with an array using curl
- Working With System Events
- How to get the process ID to kill a nohup process?
- LeetCode 287 Find The Duplicate Number
- DAC
- POJ题目分类
- quick-cocos2d-x开发工具sublime text及其强力插件QuickXDev
- jQuery find events handlers registered with an object
- detecting autofill on chrome
- 实时监控文本框输入的信息,JS中的oninput & onpropertychange事件
- JSONP 跨域访问
- Make autofill background transparent
- MySQL数据库引擎介绍、区别、创建和性能测试的深入分析
- JDK8新特性
- 1003. 中缀表达式转后缀表达式
- 扩展欧几里得算法(不爽的裁判,uva 12169)