code: function() {
          var names = $.isString(this.id) ? this.id.split('/') : emptyArr;
          var root = this.root;
          var name, lastName;
          while (name = names.shift()) {
              lastName = name;
              if (names.length) {
                  root = (root[name] = root[name] || {});
              }
          }
          try {
              var f = $.isFunction(this.factory) && this.factory.apply(window, this.getArgs());
              if (f) {
                  f.amd = 'THEO'; //加个尾巴~
                  root[lastName] = f;
                  this.id && (mapDefined[this.id] = 'defined');
              }
          } catch (e) {
              if (this.id) {
                  mapDefined[this.id] = 'error';
              }
              throw new Error('Module.namespace error:id=>' + this.id + ';undef=>' + this.undef.join(',') + ';info=>' + e.message);
          }
          //解决掉触发调用模块的promise
          if (this.id && $.isArray(mapDeps2ModulePromise[this.id])) {
              _.each(mapDeps2ModulePromise[this.id], function(v) {
                  if (isPromise(v)) {
                      v.resolve();
                  }
              });
          }
          this.destroy();
      }
docs: 命名空间