szn-options.js
function addEventListeners(instance) {
    if (!instance._mounted || !instance._options) {
      return
    }

    instance._options.addEventListener('change', instance._onSelectionChange)
    instance._root.addEventListener('mouseover', instance._onItemHovered)
    instance._root.addEventListener('mousedown', instance._onItemSelectionStart)
    instance._root.addEventListener('mouseup', instance._onItemClicked)
    addEventListener('mouseup', instance._onSelectionEnd)
  }
function addEventListeners(instance) {
    if (!instance._mounted || !instance._options) {
      return
    }

    instance._options.addEventListener('change', instance._onSelectionChange)
    instance._root.addEventListener('mouseover', instance._onItemHovered)
    instance._root.addEventListener('mousedown', instance._onItemSelectionStart)
    instance._root.addEventListener('mouseup', instance._onItemClicked)
    addEventListener('mouseup', instance._onSelectionEnd)
  }
function addEventListeners ( instance ) { if ( ! instance . _mounted || ! instance . _options ) { return } instance . _options . addEventListener ( 'change' , instance . _onSelectionChange ) instance . _root . addEventListener ( 'mouseover' , instance . _onItemHovered ) instance . _root . addEventListener ( 'mousedown' , instance . _onItemSelectionStart ) instance . _root . addEventListener ( 'mouseup' , instance . _onItemClicked ) addEventListener ( 'mouseup' , instance . _onSelectionEnd ) }
Registers event listeners that the provided szn-options instance requires to function correctly.

The function has no effect if the provided szn-options element is not mounted into the document or has not been
provided with its options yet.

@param {SznElements.SznOptions} instance The szn-options element instance.
Registers event listeners that the provided szn - options instance requires to function correctly .