public/be-assets/node_modules/@yaireo/tagify/dist/tagify.esm.js
/**
     * Events should only be binded when the dropdown is rendered and removed when isn't
     * because there might be multiple Tagify instances on a certain page
     * @param  {Boolean} bindUnbind [optional. true when wanting to unbind all the events]
     */
Events should only be binded when the dropdown is rendered and removed when isn't
because there might be multiple Tagify instances on a certain page
@param  {Boolean} bindUnbind [optional. true when wanting to unbind all the events]
Events should only be binded when the dropdown is rendered and removed when isn ' t because there might be multiple Tagify instances on a certain page @param { Boolean } bindUnbind [ optional . true when wanting to unbind all the events ]
binding(bindUnbind = true) {
      var _CB = this.dropdown.events.callbacks,
      _CBR = this.listeners.dropdown = this.listeners.dropdown || {
        position: this.dropdown.position.bind(this),
        onKeyDown: _CB.onKeyDown.bind(this),
        onMouseOver: _CB.onMouseOver.bind(this),
        onMouseLeave: _CB.onMouseLeave.bind(this),
        onClick: _CB.onClick.bind(this),
        onScroll: _CB.onScroll.bind(this)
      },
          action = bindUnbind ? 'addEventListener' : 'removeEventListener';
      if (this.settings.dropdown.position != 'manual') {
        window[action]('resize', _CBR.position);
        window[action]('keydown', _CBR.onKeyDown);
      }
      this.DOM.dropdown[action]('mouseover', _CBR.onMouseOver);
      this.DOM.dropdown[action]('mouseleave', _CBR.onMouseLeave);
      this.DOM.dropdown[action]('mousedown', _CBR.onClick);
      this.DOM.dropdown.content[action]('scroll', _CBR.onScroll);
    }
binding ( bindUnbind = true ) { var _CB = this . dropdown . events . callbacks , _CBR = this . listeners . dropdown = this . listeners . dropdown || { position : this . dropdown . position . bind ( this ) , onKeyDown : _CB . onKeyDown . bind ( this ) , onMouseOver : _CB . onMouseOver . bind ( this ) , onMouseLeave : _CB . onMouseLeave . bind ( this ) , onClick : _CB . onClick . bind ( this ) , onScroll : _CB . onScroll . bind ( this ) } , action = bindUnbind ? 'addEventListener' : 'removeEventListener' ; if ( this . settings . dropdown . position != 'manual' ) { window [ action ] ( 'resize' , _CBR . position ) ; window [ action ] ( 'keydown' , _CBR . onKeyDown ) ; } this . DOM . dropdown [ action ] ( 'mouseover' , _CBR . onMouseOver ) ; this . DOM . dropdown [ action ] ( 'mouseleave' , _CBR . onMouseLeave ) ; this . DOM . dropdown [ action ] ( 'mousedown' , _CBR . onClick ) ; this . DOM . dropdown . content [ action ] ( 'scroll' , _CBR . onScroll ) ; }
Events should only be binded when the dropdown is rendered and removed when isn't
 because there might be multiple Tagify instances on a certain page
 @param  {Boolean} bindUnbind [optional.
Events should only be binded when the dropdown is rendered and removed when isn ' t because there might be multiple Tagify instances on a certain page @param { Boolean } bindUnbind [ optional .
// references to the ".bind()" methods must be saved so they could be unbinded later // callback-refs