Path: blob/trunk/third_party/closure/goog/module/module.js
2868 views
// Copyright 2006 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*16* @fileoverview This class supports the dynamic loading of compiled17* javascript modules at runtime, as described in the designdoc.18*19* <http://go/js_modules_design>20*21*/2223goog.provide('goog.module');2425// TODO(johnlenz): Here we explicitly initialize the namespace to avoid26// problems with the goog.module method in base.js. We should rename this27// entire package to goog.loader and then we can delete this file.28//29// However, note that it is tricky to do that without breaking the world.30/**31* @suppress {duplicate}32* @type {function(string):void}33*/34goog.module = goog.module || {};353637