awesomplete.js
function(evt) {
				var li = evt.target;

				if (li !== this) {

					while (li && !/li/i.test(li.nodeName)) {
						li = li.parentNode;
					}

					if (li && evt.button === 0) {  // Only select on left click
						evt.preventDefault();
						me.select(li, evt.target, evt);
					}
				}
			}
function(evt) {
				var li = evt.target;

				if (li !== this) {

					while (li && !/li/i.test(li.nodeName)) {
						li = li.parentNode;
					}

					if (li && evt.button === 0) {  // Only select on left click
						evt.preventDefault();
						me.select(li, evt.target, evt);
					}
				}
			}
function ( evt ) { var li = evt . target ; if ( li !== this ) { while ( li && ! / li / i . test ( li . nodeName ) ) { li = li . parentNode ; } if ( li && evt . button === 0 ) { // Only select on left click evt . preventDefault ( ) ; me . select ( li , evt . target , evt ) ; } } }
The click event is fired even if the corresponding mousedown event has called preventDefault
The click event is fired even if the corresponding mousedown event has called preventDefault