Can you imagine using Firebug to step through the chain from the first click event to the "base" implementation of "activate" in this example, through all of the jQuery event triggering going on? Nasty.
Am I missing something here?
Can you imagine using Firebug to step through the chain from the first click event to the "base" implementation of "activate" in this example, through all of the jQuery event triggering going on? Nasty.
Am I missing something here?
After working on some really complex JavaScript applications, my opinion is that the approach Yehuda's advocating in this post is enormously helpful when applications start getting complex, both in terms of the DOM as well as the behaviors that apply to them.
In this case I think Katz is replacing one kind of abstraction off of the browser with another one, actually an abstraction away from the natural call mechanisms of the javascript language. This is basically Aspect Oriented Programming by another name, and I've not actually come across a project where AOP made life less complicated.