code: function emitGlobalEvent(resolver) {
          var type = resolver.status === STATUS.FULFILLED
                      ? 'resolve'
                      : 'reject';
  
          if (globalEvent) {
              Resolver.emit(type, resolver.data);
          }
      }
docs: 触发全局事件
  
  @inner
  @param {Resolver} resolver resolver对象
  @param {string} type 事件类型