The goog.global Namespace

goog.global

Reference to the global context. In most cases this will be 'window'.

.CLOSURE_BASE_PATH {string|undefined}

A hook for overriding the base path.

.CLOSURE_CSS_NAME_MAPPING {Object|undefined}

To use CSS renaming in compiled mode, one of the input files should have a call to goog.setCssNameMapping() with an object literal that the JSCompiler can extract and use to replace all calls to goog.getCssName(). In uncompiled mode, JavaScript code should be loaded before this base.js file that declares a global variable, CLOSURE_CSS_NAME_MAPPING, which is used below. This is to ensure that the mapping is loaded before any calls to goog.getCssName() are made in uncompiled mode. A hook for overriding the CSS name mapping.

.CLOSURE_IMPORT_SCRIPT

A function to import a single script. This is meant to be overridden when Closure is being run in non-HTML contexts, such as web workers. It's defined in the global scope so that it can be set before base.js is loaded, which allows deps.js to be imported properly. The function is passed the script source, which is a relative URI. It should return true if the script was imported, false otherwise.

.CLOSURE_NO_DEPS {boolean|undefined}

Whether to write out Closure's deps file. By default, the deps are written.

.initInner()

Global function to kick off initialization in the iframe.

.initOuter()

Global function to kick off initialization in the containing document.