Where is the documentation for the “jQuery.event.special” API (for custom events)?

走远了吗. 提交于 2019-12-18 10:54:53

问题


I'm creating a fork of the textchange jQuery plugin, which uses the jQuery.event.special API to create its own custom events (textchange, hastext, and notext).

I'm going crazy trying to find the documentation for the $.event.special API! I've searched jQuery's site and found nothing that mentions the special functionality. I've found several blogs that talk about API and even reference a link to it, but that page does not talk about it at all.

Can someone please point me toward some documentation for this "special" API? I'm mainly interested in jQuery's documentation, because I want to know the "official" source of this API.

UPDATE:

I looked at jQuery's source, and they use the $.event.special API for certain events (including ready and hover), so it's obviously not obsolete as I previously thought.


回答1:


http://benalman.com/news/2010/03/jquery-special-events/

The site seems to be well documented and should have everything you should ever need to know about the jQuery Special Events.




回答2:


There is some official documentation here: http://learn.jquery.com/events/event-extensions/




回答3:


Although it is true that there hasn't been any Official documentation on the jQuery.event.special there is a beta tutorial (as of March 19 2013) documentation at learn.jquery.com since jQuery 1.7.

For anyone following older jQuery(prior to 1.7) should find it as Ben Alman's article.

Side Note: Ben Alman's article is also mentioned in the official tutorial.



来源:https://stackoverflow.com/questions/8919620/where-is-the-documentation-for-the-jquery-event-special-api-for-custom-events

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!