Closed jrhorn424 closed 8 years ago
@jrhorn424 I'm happy to add this, and think I mentioned it last time, but I'd love to put a solid reason behind why .on('click',...) > .click()
in the README if possible.
Pedagogically, it gets them thinking about events. It's less magic. More importantly, we can't take advantage of bubbling to event delegation with click
. Compare the signatures:
Some things to include:
.on('click')
to.click()
$.ajax()
with the deferred object interface (don't use$.get
and friends since it use arguments instead of "promise")