basemodule.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright 2008 The Closure Library Authors. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS-IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. /**
  15. * @fileoverview Defines the base class for a module. This is used to allow the
  16. * code to be modularized, giving the benefits of lazy loading and loading on
  17. * demand.
  18. *
  19. */
  20. goog.provide('goog.module.BaseModule');
  21. goog.require('goog.Disposable');
  22. /** @suppress {extraRequire} */
  23. goog.require('goog.module');
  24. /**
  25. * A basic module object that represents a module of Javascript code that can
  26. * be dynamically loaded.
  27. *
  28. * @constructor
  29. * @extends {goog.Disposable}
  30. */
  31. goog.module.BaseModule = function() {
  32. goog.Disposable.call(this);
  33. };
  34. goog.inherits(goog.module.BaseModule, goog.Disposable);
  35. /**
  36. * Performs any load-time initialization that the module requires.
  37. * @param {Object} context The module context.
  38. */
  39. goog.module.BaseModule.prototype.initialize = function(context) {};