 					# if the declaration is something like <typeahead ng-model="something">...
 					term = $input.val().toLowerCase()
 					for liEl in $lis
-						cssClass = if liEl.className.indexOf("active") is -1 then "" else "active "
-						cssClass += if term and liEl.innerHTML.toLowerCase().indexOf(term) >= 0 then "show" else "hide"
-						liEl.className = cssClass
+						liEl.className = if term and liEl.innerHTML.toLowerCase().indexOf(term) >= 0 then "show" else "hide"
 					null
 	res
 ]
					null
				select = (el) ->
					$input.val(el.innerHTML).triggerHandler("input")
					$lis.addClass "hide"
				scope.typeaheadKeydown = (evt) ->
					switch evt.which
						when 38 # top


	res =
		template: """
		<div><div ng-keydown="typeaheadKeydown($event)" ng-keyup="typeaheadKeyup($event)"><input ng-model="term" type="text" autocomplete="off" /><div ng-click="typeaheadSelect($event)"><div ng-transclude></div></div></div></div>
		"""
		scope: true
		transclude: true
