jQuery 1.7 "unifying bind/live/delegate"
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.
精彩评论