Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 919 Bytes

dependencies.md

File metadata and controls

58 lines (46 loc) · 919 Bytes

goog.provide

file: app/some.js

goog.provide('app.Some');

/**
 * @constructor
 */
app.Some = function() {

};

goog.require

file: app/other.js

goog.provide('app.Other');

goog.require('app.Some');
goog.require('goog.dom');

/**
 * @constructor
 * @extends {app.Some}
 */
app.Other = function() {
	goog.base(this);
	this.element = goog.dom.getElement('other');
};

goog.exportSymbol

goog.provide('app.start');

app.start = function() {
	// ...
};

// make app.start 'accessible' after ADVANCED_OPTIMIZATIONS
goog.exportSymbol('app.start', app.start);

@export annotation

When using the @export annotation, be certain that you use the --generate_exports compiler flag.

goog.provide('app.start');

/**
 * Make {@code app.start} accessible after {@code ADVANCED_OPTIMIZATIONS}.
 * @export
 */
app.start = function() {
	// ...
};