module.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2006 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. *
  16. * @fileoverview This class supports the dynamic loading of compiled
  17. * javascript modules at runtime, as described in the designdoc.
  18. *
  19. * <http://go/js_modules_design>
  20. *
  21. */
  22. goog.provide('goog.module');
  23. // TODO(johnlenz): Here we explicitly initialize the namespace to avoid
  24. // problems with the goog.module method in base.js. We should rename this
  25. // entire package to goog.loader and then we can delete this file.
  26. //
  27. // However, note that it is tricky to do that without breaking the world.
  28. /**
  29. * @suppress {duplicate}
  30. * @type {function(string):void}
  31. */
  32. goog.module = goog.module || {};