speak about resilience :)
can't find it in chat history, but this randomly reminded me of a discussion / commentating we had about having many handlers attached to specific elements vs global ones dispatching depending on target's attributes
I think I was very adamant that "having hundreds of handlers was no big deal"
two years later, I must say that I might be going towards the "few global handlers" side
but I find the kind and quality of problems that arise from managing event handlers globally, are nicer to think about than the ones that arise from having to constantly watch the dom to register handlers to elements that are added or removed
also I've starting to use custom events more seriously, and I find the synergy in all that very nice to work with
and, they also fit quite well with adding arbitrary html fragments (hypermedia controls) to the dom