       .catch (err) =>
         @showWarning 'An error occurred, please try again.'
         kd.warn err
+
+  , DEBOUNCE_WAIT
 
 
   parseResponse: (machine, res) =>

    item?.getElement().scrollIntoViewIfNeeded()


  handleKeyUp: (event) ->

    listenedKeys  = [13, 27, 38, 40]
    isListenedKey = listenedKeys.indexOf(event.which) > -1
    inputValue    = @input.getValue()
    isSameText    = inputValue is @lastTerm

    return  if isListenedKey or isSameText

    @search inputValue


  handleEnterKey: ->

    @on 'ReceivedClickElsewhere', @bound 'destroy'


  search: _.debounce (text) ->

    return @clearSearch()  if text is ''

