   Base class
 ###
 class MentionsKinder
-  KEY = { BACKSPACE : 8, TAB : 9, RETURN : 13, ESC : 27, LEFT : 37, UP : 38, RIGHT : 39, DOWN : 40, COMMA : 188, SPACE : 32, HOME : 36, END : 35 }
+  KEY = { BACKSPACE: 8, TAB: 9, RETURN: 13, ESC: 27, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, COMMA: 188, SPACE: 32, HOME: 36, END: 35 }
   # default options, exposed under $.mentionsKinder.defaultOptions
   defaultOptions:
     trigger:

      } # inherit default

  triggerDefaultOptions:
      autocompleter: Autocompleter
      formatter: (data)->
        $('<span class="mention label btn-primary active" disabled contenteditable="false">').text(data.name).prepend("<span class='#{data.triggerOptions.triggerName}-trigger'>#{data.trigger}</span>")
      serializer: (data)->
        "[#{data.trigger}#{data.name}](#{data.triggerOptions.triggerName}:#{data.value})"

  # le constructor
  constructor: (element, options)->

    @isAutocompleting() && window.getSelection().baseNode?.parentElement == @_current.$tempMention[0]


MentionsKinder.Autocompleter = Autocompleter
