plugins/bootstrap/typeahead.js
function(dir) {
			var curr = this.menu.one('li.active'),
				targetNode = curr[dir]();

			this.menu.one('li.active').removeClass('active');

			targetNode.addClass('active');
			return this;
		}
function(dir) {
			var curr = this.menu.one('li.active'),
				targetNode = curr[dir]();

			this.menu.one('li.active').removeClass('active');

			targetNode.addClass('active');
			return this;
		}
function ( dir ) { var curr = this . menu . one ( 'li.active' ) , targetNode = curr [ dir ] ( ) ; this . menu . one ( 'li.active' ) . removeClass ( 'active' ) ; targetNode . addClass ( 'active' ) ; return this ; }
Moves the active selected item
@param string (next | previous)
Moves the active selected item