src/dropdown.js
function (e) {
      var $el = $(e.target);
      e.preventDefault();
      if (!$el.hasClass('textcomplete-item')) {
        $el = $el.closest('.textcomplete-item');
      }
      this._index = parseInt($el.data('index'), 10);
      this._activateIndexedItem();
    }
function (e) {
      var $el = $(e.target);
      e.preventDefault();
      if (!$el.hasClass('textcomplete-item')) {
        $el = $el.closest('.textcomplete-item');
      }
      this._index = parseInt($el.data('index'), 10);
      this._activateIndexedItem();
    }
function ( e ) { var $el = $ ( e . target ) ; e . preventDefault ( ) ; if ( ! $el . hasClass ( 'textcomplete-item' ) ) { $el = $el . closest ( '.textcomplete-item' ) ; } this . _index = parseInt ( $el . data ( 'index' ) , 10 ) ; this . _activateIndexedItem ( ) ; }
Activate hovered item.
Activate hovered item .