code: function (moduleName) {
                  var found, args, mod,
                      shim = config.shim[moduleName] || {},
                      shExports = shim.exports;
  
                  takeGlobalQueue();
  
                  while (defQueue.length) {
                      args = defQueue.shift();
                      if (args[0] === null) {
                          args[0] = moduleName;
                          //If already found an anonymous module and bound it
                          //to this name, then this is some other anon module
                          //waiting for its completeLoad to fire.
                          if (found) {
                              break;
                          }
                          found = true;
                      } else if (args[0] === moduleName) {
                          //Found matching define call for this script!
                          found = true;
                      }
  
                      callGetModule(args);
                  }
  
                  //Do this after the cycle of callGetModule in case the result
                  //of those calls/init calls changes the registry.
                  mod = registry[moduleName];
  
                  if (!found && !defined[moduleName] && mod && !mod.inited) {
                      if (config.enforceDefine && (!shExports || !getGlobal(shExports))) {
                          if (hasPathFallback(moduleName)) {
                              return;
                          } else {
                              return onError(makeError('nodefine',
                                               'No define call for ' + moduleName,
                                               null,
                                               [moduleName]));
                          }
                      } else {
                          //A script that does not call define(), so just simulate
                          //the call for it.
                          callGetModule([moduleName, (shim.deps || []), shim.exportsFn]);
                      }
                  }
  
                  checkLoaded();
              }
docs: Internal method used by environment adapters to complete a load event.
  A load event could be a script load or just a load pass from a synchronous
  load call.
  @param {String} moduleName the name of the module to potentially complete.