code: function modUpdatePreparedState(id) {
          var updatingModules = {};
          update(id);
  
          function update(id) {
              modPrepare(id);
              if (!modIs(id, MODULE_ANALYZED)) {
                  return false;
              }
  
              if (modIs(id, MODULE_PREPARED) || updatingModules[id]) {
                  return true;
              }
  
              updatingModules[id] = 1;
              var mod = modModules[id];
              var prepared = true;
  
              each(
                  mod.depMs,
                  function (dep) {
                      // return (prepared = update(dep.absId));
                      prepared = update(dep.absId) && prepared;
                  }
              );
  
              // 判断resource是否加载完成。如果resource未加载完成，则认为未准备好
              /* jshint ignore:start */
              prepared && each(
                  mod.depRs,
                  function (dep) {
                      prepared = !!dep.absId;
                      return prepared;
                  }
              );
              /* jshint ignore:end */
  
              if (prepared && !modIs(id, MODULE_PREPARED)) {
                  mod.state = MODULE_PREPARED;
              }
              updatingModules[id] = 0;
              return prepared;
          }
      }
docs: 更新模块的准备状态
  
  @inner
  @param {string} id 模块id