Re:JQuery 1.7 beta 1 released
by tjsnyder on Wednesday September 28, 2011 @07:09PM
(#3050325)
On and Off is going to be great for future development. Especially when you can't guarantee how a dom element had events assigned to it.
[ Parent
| on HN ]
Short term, this raises the learning curve (if I was a newb, my eyes would bleed at having 5+ ways to attach events), but long-term, this is a major win for code cleanliness.
I think it may increase initial confusion when first learning jQuery however a thorough tutorial explaining the differences/similarities and reasoning behind the event names would ideally clear up any confusion. Although the easiest path to understanding how to use the calls for daily use would be to have the user forgo all old event methods and just focus on using .on and .off (assuming they'll never have to use a jQuery version less than 1.7 which is unlikely).