Dojo.behavior: Write Modularized HTML Document Event Handling

“The dojo.behavior module provides a simple and lightweight
mechanism for listening to HTML document events.

“If you’ve ever worked with events using the Dojo libraries,
you’re no doubt familiar with dojo.connect and dojo.publish. With
these two excellent choices for tapping into the event model, you
might feel little need for considering additional mechanisms.

“Or haven’t you heard, the Dojo libraries are no place for
closed-mindedness! There’s always another way of doing things. You
might even find your personal preference just around the bend! This
may well be the case with the dojo.behavior module.”

Complete Story