Path: blob/trunk/third_party/closure/goog/module/basemodule.js
2868 views
// Copyright 2008 The Closure Library Authors. All Rights Reserved.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS-IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314/**15* @fileoverview Defines the base class for a module. This is used to allow the16* code to be modularized, giving the benefits of lazy loading and loading on17* demand.18*19*/2021goog.provide('goog.module.BaseModule');2223goog.require('goog.Disposable');24/** @suppress {extraRequire} */25goog.require('goog.module');26272829/**30* A basic module object that represents a module of Javascript code that can31* be dynamically loaded.32*33* @constructor34* @extends {goog.Disposable}35*/36goog.module.BaseModule = function() {37goog.Disposable.call(this);38};39goog.inherits(goog.module.BaseModule, goog.Disposable);404142/**43* Performs any load-time initialization that the module requires.44* @param {Object} context The module context.45*/46goog.module.BaseModule.prototype.initialize = function(context) {};474849