     else
       @abortAutocomplete()
 
+  # check if there is an autocompletion started
   isAutocompleting: ->
     if @_current?
       if $.contains(@$editable, @_current.$tempMention)

    @_current.autocompleter.always(@populateInput)
    @_current.autocompleter.search('')

  updateAutocomplete: ->
    text = @_current.$tempMention.text()
    triggerLength = @_current.trigger.length

      @_setCaretToStartOf(nextNode) if nextNode
      $currentMentionNode.remove()

  # Check if $.mentionsKinder is seting up to the correct element
  _ensureInput: (element)->
    @$originalInput = $(element)
    unless @$originalInput.is('input[type=text],textarea')
