Conquer event-driven design using dojo.connect
Explore how dojo.connect and pub/sub make web applications more maintainable
From the developerWorks archives
Date archived: January 4, 2017 | First published: January 25, 2011
This article explains how event-driven design is loosely coupled and fits neatly into a browser-based application and Dojo's object-oriented framework. The result is a tool that helps maintain modularity in code. The modules are then glued together using dojo.connect, a powerful function that you can use not only for Document Object Model (DOM) events, but also for custom application events. Finally, the article compares dojo.connect and pub/sub, including their different degrees of loose coupling.
This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.