function _handleBodyClick( event ) {
      var target = event.target;

      var isInDesktop = _isInDesktop();
      if ( isInDesktop && !_isDesktopTarget( target ) ||
           !isInDesktop && !_isMobileTarget( target ) ) {
        collapse();
      }
    }
/**
     * 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 mousedown 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 mousedown 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 mousedown event .
function _handleBodyClick( event ) {
      var target = event.target;
      var isInDesktop = _isInDesktop();
      if ( isInDesktop && !_isDesktopTarget( target ) ||
           !isInDesktop && !_isMobileTarget( target ) ) {
        collapse();
      }
    }
function _handleBodyClick ( event ) { var target = event . target ; var isInDesktop = _isInDesktop ( ) ; if ( isInDesktop && ! _isDesktopTarget ( target ) || ! isInDesktop && ! _isMobileTarget ( target ) ) { collapse ( ) ; } }
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 .