       if highlighted.tagName == 'A'
         # it's a link, change the href
         @_navigateTo highlighted.href
-      else 
+      else
         @_selectCurrent()
 
     _handleCancel: ->

        anchor = document.createElement 'A'
        anchor.href = item[@config.map.uri]
        anchor.className = @config.resultLinkClass
        anchor.className += " autocomplete__result__typed icon--#{item[@config.map.type]}--before icon--white--before" if @config.map.type
        anchor.innerHTML = highlightedText
        listItem.appendChild anchor
      else

        if direction is 'down'
          unless @results.highlighted.nextSibling == null
            @_removeClass(@results.highlighted, @config.resultItemHoveredClass) if @results.highlighted
            @results.highlighted = @results.highlighted.nextSibling
      @_highlightCurrent()

    _highlightCurrent: ->
