function _calcEventDelay( type ) {
    var delay = 0;
    if ( type === 'triggerClick' ) {
      window.clearTimeout( _showDelay );
    } else if ( type === 'triggerOver' ) {
      if ( _activeMenu === null ) {
        delay = 150;
      } else {
        delay = 50;
      }
    }

    return delay;
  }
/**
   * @param {string} type - The type of event to check.
   * @returns {number} The amount to delay in milliseconds,
   *   length is determined based on the event type and
   *   whether the menu is active or not.
   */
@param {string} type - The type of event to check.
@returns {number} The amount to delay in milliseconds,
length is determined based on the event type and
whether the menu is active or not.
@param { string } type - The type of event to check . @returns { number } The amount to delay in milliseconds length is determined based on the event type and whether the menu is active or not .
function _calcEventDelay( type ) {
    var delay = 0;
    if ( type === 'triggerClick' ) {
      window.clearTimeout( _showDelay );
    } else if ( type === 'triggerOver' ) {
      if ( _activeMenu === null ) {
        delay = 150;
      } else {
        delay = 50;
      }
    }
    return delay;
  }
function _calcEventDelay ( type ) { var delay = 0 ; if ( type === 'triggerClick' ) { window . clearTimeout ( _showDelay ) ; } else if ( type === 'triggerOver' ) { if ( _activeMenu === null ) { delay = 150 ; } else { delay = 50 ; } } return delay ; }
@param {string} type - The type of event to check.
@param { string } type - The type of event to check .