       e.preventDefault()
       e.stopPropagation()
       @input
-        .val('')
-        .trigger('keyup')
+        .val ''
+        .trigger 'keyup'
         .focus()
 
     # Key events
-    timeout = ""
-    @input.on "keyup", (e) =>
+    timeout = ''
+    @input.on 'keyup', (e) =>
       keyCode = e.which
 
       return if ARROW_KEY_CODES.indexOf(keyCode) >= 0
 
-      if @input.val() isnt "" and !$inputContainer.hasClass HAS_VALUE_CLASS
+      if @input.val() isnt '' and not $inputContainer.hasClass HAS_VALUE_CLASS
         $inputContainer.addClass HAS_VALUE_CLASS
-      else if @input.val() is "" and $inputContainer.hasClass HAS_VALUE_CLASS
+      else if @input.val() is '' and $inputContainer.hasClass HAS_VALUE_CLASS
         $inputContainer.removeClass HAS_VALUE_CLASS
 
-      if keyCode is 13
-        return false
+      return false if keyCode is 13
 
       # Only filter asynchronously only if option remote is set
       if @options.remote


    # Update the class for the row at the specific index
    $listItem = $listItems.eq(index)
    $listItem.find('a:first-child').addClass "is-focused"

    # Dropdown content scroll area
    $dropdownContent = $listItem.closest('.dropdown-content')

          # Move up
          currentIndex -= 1 if currentIndex > 0

        if currentIndex isnt PREV_INDEX
          @highlightRowAtIndex($listItems, currentIndex)

        return false

      # If enter is pressed and a row is highlighted, select it
      if currentKeyCode is 13 and currentIndex isnt -1
        e.preventDefault()
        e.stopImmediatePropagation()
        @selectRowAtIndex e, currentIndex
