     selection.setSingleRange(range)
     selection
 
+  # Collapse selection to the end
   _setCaretToEndOf: (node)->
     @_prepareSetCaretTo(node).collapseToEnd()
 
+  # Collapse selection to the beginning
   _setCaretToStartOf: (node)->
     @_prepareSetCaretTo(node).collapseToStart()
 
+  # Helper method to check if caret is in the current temp mention
   _isCaretInTempMention: ->
     if @isAutocompleting()
       range = rangy.getSelection().getRangeAt(0)
       range?.compareNode(@_current.$tempMention.get(0)) == range.NODE_BEFORE_AND_AFTER
 
+  # Helper method to strip whitespaces from start/end of text
   _strip: (text)->
     text.replace(/^\s*(.*?)\s*$/gm, '$1')
 

      "[#{data.trigger}#{data.name}](#{data.triggerOptions.triggerName}:#{data.value})"

  # le constructor
  constructor: (element, options)->
    @_ensureInput(element)
    @_buildOptions(options)

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