Summary

After reading this chapter, you should:

  • Be aware that dojo.connect standardizes the event Object that is passed into event-handling functions, providing portability across platforms

  • Understand how dojo.connect allows you to arbitrarily chain DOM events, JavaScript Object events, and ordinary functions together to create an event-driven response

  • Use publish/subscribe to facilitate connections and achieve a loosely coupled communications backbone in an application

  • Be aware of some of the considerations and trade-offs for using dojo.connect versus pub/sub in an application architecture

Next up is AJAX and server communication.

Get Dojo: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.