> is it appropriate to use $(this).addClass instead of $(e.target).addClass
> inside the handler? it seems to work using $(this) but i'm not sure if
> that's the intended implementation.

In most cases, the this and e.target are the same element. They are
only different if you set the indexer to be bubbling(not recommended)
and once it starts bubbling. Also in the case of a dom element, inside
a link. The this will be the link, while the real clicked element is
usually the inner element.
The 'this' should be more reliable in general.

>the jQuery "Listen" plugin is much more powerful, i recommend it
>for event delegation since it will re-bind automatically to any....

Note that Listen doesn't re-bind. It uses event delegation and
selector indexation.

Glad you liked Listen.
--
Ariel Flesler
http://flesler.blogspot.com

Reply via email to