Hacker News new | ask | show | jobs
by tjsnyder 5372 days ago
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.
1 comments

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).