If I add an event to a collection of elements in a parent using event
delegation that it automatically also adds the event on new elements
created in that parent?
>From tests I can say this is true, and I think it's also in the docs
"[..] evaluating your code only when the user actually clicks [..]"
but just to make sure... Correct?!

I used to have attach/detach methods in several classes that I would
run on each element in a collection of elements which aren't needed
anymore if I do one addEvent on a parent container using event
delegation...

One more thought (not tested yet).. if I would do a removeEvent on a
single element in the collection of elements (aka to temporary "lock"
a drag/drop possibility by removing the event), is this going to work
if I earlier added the event with event delegation to the parent?

Reply via email to