Summary

After reading this chapter, you should:

  • Understand Base's general feature set

  • Be able to configure djConfig to register module paths and be aware of the various other options you can pass into this structure to configure the bootstrap process

  • Understand how to use dojo.addOnLoad and dojo.addOnUnload functions and be aware of how dojo.addOnLoad can protect you from creating race conditions in your code

  • Be able to construct and namespace your own modules with dojo.provide and dojo.require

  • Understand how (and when) to use the map, filter, and forEach functions

  • Know the difference between and be able to effectively use mixin and extend

  • Effectively use Dojo's utilities for manipulating style with hasClass, removeClass, addClass, and toggleClass

  • Understand the basics of the CSS box model and be able to use functions like coords and marginBox to manipulate the placement of DOM nodes

  • Be aware of Base's Array processing utilities

  • Be able to wire up arbitrary connections of Object and DOM events

  • Be able to manage cookies

  • Be able to use Core's facilities for managing the back button for a single page app

Next, we'll take a look at event listeners and pub/sub 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.