       ENTER: 13
 
     DEFAULT_CALLBACKS =
-
       matcher: (flag, subtext) ->
         regexp = new RegExp flag+'([A-Za-z0-9_\+\-]*)$|'+flag+'([^\\x00-\\xff]*)$','gi'
         match = regexp.exec subtext

        $ul.find("li:eq(0)").addClass "cur"


    _DEFAULT_TPL = "<li id='${id}'>${name}</li>"

    log = () ->
        #console.log(arguments)

    $.fn.atWho = (flag, options) ->
        AtView.init()
        @.filter('textarea, input').each () ->
            $this = $(this)
            data = $this.data "AtWho"

            $this.data 'AtWho', (data = new At(this)) if not data
            data.reg flag, options

    $.fn.atWho.default =
        # Parameter: choose

      data_refactor: (data) ->
        $.map data, (item, k) ->
          if not $.isPlainObject item
            item = {name:item}
          return item


