file used to bootstrap the rest of the Closure Library is
base.js. This is where the root object,
created, to which all other properties in the Closure Library are added.
Because all of the functions defined in
base.js are available
primitives of the Library. This chapter is a
comprehensive reference for these primitives.
In enumerating the API of
base.js, this chapter also aims
to explain how some high-level concepts are designed to work in the Closure
Library, and to provide insight into the Library’s design. Each section is
intended to introduce an idiom of the Library, and the subsections list the
variables and functions in
base.js that support that
The “Hello World” example in Chapter 1
goog.require() are used to establish dependency relationships
in the Closure Library. This section discusses the mechanics of how these
functions implement the dependency management system for the
Unlike Java, in which multiple interdependent classes can be
<script> tag order in a web page. To
produce an ordering without forward declarations,
goog.provide() calls ...