function addTriggersToReference() {
    if (instance.props.touchHold && !instance.props.target) {
      on('touchstart', onTrigger, PASSIVE);
      on('touchend', onMouseLeave, PASSIVE);
    }

    instance.props.trigger.trim().split(' ').forEach(function (eventType) {
      if (eventType === 'manual') {
        return;
      } // Non-delegates


      if (!instance.props.target) {
        on(eventType, onTrigger);

        switch (eventType) {
          case 'mouseenter':
            on('mouseleave', onMouseLeave);
            break;

          case 'focus':
            on(isIE$1 ? 'focusout' : 'blur', onBlur);
            break;
        }
      } else {
        // Delegates
        switch (eventType) {
          case 'mouseenter':
            on('mouseover', onDelegateShow);
            on('mouseout', onDelegateHide);
            break;

          case 'focus':
            on('focusin', onDelegateShow);
            on('focusout', onDelegateHide);
            break;

          case 'click':
            on(eventType, onDelegateShow);
            break;
        }
      }
    });
  }
/**
   * Adds event listeners to the reference based on the `trigger` prop
   */
Adds event listeners to the reference based on the `trigger` prop
Adds event listeners to the reference based on the ` trigger ` prop
function addTriggersToReference() {
    if (instance.props.touchHold && !instance.props.target) {
      on('touchstart', onTrigger, PASSIVE);
      on('touchend', onMouseLeave, PASSIVE);
    }
    instance.props.trigger.trim().split(' ').forEach(function (eventType) {
      if (eventType === 'manual') {
        return;
      } 
      if (!instance.props.target) {
        on(eventType, onTrigger);
        switch (eventType) {
          case 'mouseenter':
            on('mouseleave', onMouseLeave);
            break;
          case 'focus':
            on(isIE$1 ? 'focusout' : 'blur', onBlur);
            break;
        }
      } else {
        switch (eventType) {
          case 'mouseenter':
            on('mouseover', onDelegateShow);
            on('mouseout', onDelegateHide);
            break;
          case 'focus':
            on('focusin', onDelegateShow);
            on('focusout', onDelegateHide);
            break;
          case 'click':
            on(eventType, onDelegateShow);
            break;
        }
      }
    });
  }
function addTriggersToReference ( ) { if ( instance . props . touchHold && ! instance . props . target ) { on ( 'touchstart' , onTrigger , PASSIVE ) ; on ( 'touchend' , onMouseLeave , PASSIVE ) ; } instance . props . trigger . trim ( ) . split ( ' ' ) . forEach ( function ( eventType ) { if ( eventType === 'manual' ) { return ; } if ( ! instance . props . target ) { on ( eventType , onTrigger ) ; switch ( eventType ) { case 'mouseenter' : on ( 'mouseleave' , onMouseLeave ) ; break ; case 'focus' : on ( isIE$1 ? 'focusout' : 'blur' , onBlur ) ; break ; } } else { switch ( eventType ) { case 'mouseenter' : on ( 'mouseover' , onDelegateShow ) ; on ( 'mouseout' , onDelegateHide ) ; break ; case 'focus' : on ( 'focusin' , onDelegateShow ) ; on ( 'focusout' , onDelegateHide ) ; break ; case 'click' : on ( eventType , onDelegateShow ) ; break ; } } } ) ; }
Adds event listeners to the reference based on the `trigger` prop
Adds event listeners to the reference based on the ` trigger ` prop
// Non-delegates // Delegates