file: app/some.js
goog.provide('app.Some');
/**
* @constructor
*/
app.Some = function() {
};
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.provide('app.start');
app.start = function() {
// ...
};
// make app.start 'accessible' after ADVANCED_OPTIMIZATIONS
goog.exportSymbol('app.start', app.start);
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() {
// ...
};