开发者

jQuery 1.7 "unifying bind/live/delegate"

开发者 https://www.devze.com 2023-04-07 01:25 出处:网络
The jQuery 1.7 release will \"unify bind开发者_Go百科/live/delegate\". What does this mean in term of the jQuery source? What are the consequences for my jQuery code?

The jQuery 1.7 release will "unify bind开发者_Go百科/live/delegate". What does this mean in term of the jQuery source? What are the consequences for my jQuery code?


  • Corresponding ticket

  • Google Doc explaining the changes

Short summary:

Currently we have three different event API pairs: bind/unbind, live/die, and delegate/undelegate. Since they all use the same event lists and events under the covers, exposing the APIs separately can lead to incorrect expectations. Introduction of jQuery.fn.on. Bind/Delegate/Live will stay as shorthand methods.

0

精彩评论

暂无评论...
验证码 换一张
取 消