function _handleBodyClick( event ) {
    var target = event.target;
    if ( _activeMenu.getDom().trigger === target ) {
      return;
    }

    if ( !_rootMenu.getDom().container.contains( target ) ) {
      _rootMenu.getDom().trigger.click();
    }
  }
/**
   * Event handler for when there's a click on the page's body.
   * Used to close the global search, if needed.
   * @param {MouseEvent} event The event object for the click event.
   */
Event handler for when there's a click on the page's body.
Used to close the global search, if needed.
@param {MouseEvent} event The event object for the click event.
Event handler for when there ' s a click on the page ' s body . Used to close the global search if needed . @param { MouseEvent } event The event object for the click event .
function _handleBodyClick( event ) {
    var target = event.target;
    if ( _activeMenu.getDom().trigger === target ) {
      return;
    }
    if ( !_rootMenu.getDom().container.contains( target ) ) {
      _rootMenu.getDom().trigger.click();
    }
  }
function _handleBodyClick ( event ) { var target = event . target ; if ( _activeMenu . getDom ( ) . trigger === target ) { return ; } if ( ! _rootMenu . getDom ( ) . container . contains ( target ) ) { _rootMenu . getDom ( ) . trigger . click ( ) ; } }
Event handler for when there's a click on the page's body.
Event handler for when there ' s a click on the page ' s body .