src/router3.js
function hide_(element) {
    if (!element.hidden) {
      element.hidden = true;
      element.style.visibility = 'hidden';
      element.style.height = '0px';
      element.style.width = '0px';

      /**
       * Dispatch hide event if URL's fragment matches with a route
       * and router.hidden = true
       *
       * @event MaterialRouter3#hide
       * @type {CustomEvent}
       * @property {HTMLElement} router - The router that dispatches
       *   this event
       */
      element.dispatchEvent(new CustomEvent('hide', {
        detail: {
          router: element
        }
      }));
    }
    return true;
  }
function hide_(element) {
    if (!element.hidden) {
      element.hidden = true;
      element.style.visibility = 'hidden';
      element.style.height = '0px';
      element.style.width = '0px';

      /**
       * Dispatch hide event if URL's fragment matches with a route
       * and router.hidden = true
       *
       * @event MaterialRouter3#hide
       * @type {CustomEvent}
       * @property {HTMLElement} router - The router that dispatches
       *   this event
       */
      element.dispatchEvent(new CustomEvent('hide', {
        detail: {
          router: element
        }
      }));
    }
    return true;
  }
function hide_ ( element ) { if ( ! element . hidden ) { element . hidden = true ; element . style . visibility = 'hidden' ; element . style . height = '0px' ; element . style . width = '0px' ; /**
       * Dispatch hide event if URL's fragment matches with a route
       * and router.hidden = true
       *
       * @event MaterialRouter3#hide
       * @type {CustomEvent}
       * @property {HTMLElement} router - The router that dispatches
       *   this event
       */ element . dispatchEvent ( new CustomEvent ( 'hide' , { detail : { router : element } } ) ) ; } return true ; }
Hide element and dispatch hide event

@param {HTMLElement} element - The element
@private
Hide element and dispatch hide event