frontend/VisualPool/node_modules/ember-bootstrap/addon/components/base/bs-dropdown.js
/**
   * Handler for click events to close the dropdown
   *
   * @method closeOnClickHandler
   * @param e
   * @protected
   */
Handler for click events to close the dropdown
@method closeOnClickHandler
@param e
@protected
Handler for click events to close the dropdown @method closeOnClickHandler @param e @protected
closeOnClickHandler(e) {
    let $target = $(e.target);
    if (!this.get('isDestroyed')
      && $target.closest(this.$().find('.dropdown-toggle')).length === 0
      && ($target.closest(this.$().find('.dropdown-menu')).length === 0 || this.get('closeOnMenuClick'))) {
      this.send('closeDropdown');
    }
  }
closeOnClickHandler ( e ) { let $target = $ ( e . target ) ; if ( ! this . get ( 'isDestroyed' ) && $target . closest ( this . $ ( ) . find ( '.dropdown-toggle' ) ) . length === 0 && ( $target . closest ( this . $ ( ) . find ( '.dropdown-menu' ) ) . length === 0 || this . get ( 'closeOnMenuClick' ) ) ) { this . send ( 'closeDropdown' ) ; } }
Handler for click events to close the dropdown
 @method closeOnClickHandler
 @param e
 @protected
Handler for click events to close the dropdown @method closeOnClickHandler @param e @protected