 ###
-  Base class
+  MentionsKinder base class
 ###
 class MentionsKinder
   KEY = { RETURN: 13, ESC: 27 }


    deserializeRegex: /\[(.)(.+?)\]\((\w+):(.+?)\)/g


  triggerDefaultOptions:
    autocompleter: Autocompleter
    formatter: (data)->

    else
      false

  # abort the autocompletion
  abortAutocomplete: ->
    @isAutocompleting() && @_current.autocompleter.abort()

  # Event handler
  # autocompleter done
  # Create valid mention and add it to the editable
  handleAutocompleteDone: (data)=>
    # add current trigger state to data to allow access from formatters and serializers
    data = $.extend({}, @_current, data)
