   draw: (val) ->
     $li = $(document.createElement("li"))
       .addClass("autocomplete-collection-collection-item")
+      .attr('data-autocomplete-collection-value', val[@options.property])
       .attr('data-autocomplete-collection-id', val.id)
       .html val[@options.property]
     $x = $(document.createElement("a"))

    if $.fn.sortable?
      @$collection.sortable
        stop: (e, ui) ->
          collection_ids = that.$collection.find("[data-autocomplete-collection-id]").map( -> parseInt $(@).attr("data-autocomplete-collection-id") ).get()
          that.collection_reorder(collection_ids)

  lookup: (event) ->
    that = @

  @sorter = @options.sorter or @sorter
  @highlighter = @options.highlighter or @highlighter
  @$menu = $(@options.menu).appendTo('body')
  @$collection = $(@options.collectionUi).insertAfter(@$element)
  @collection = @options.collection or JSON.parse(@$element.attr('data-collection')) or []
  @source = @options.source or @source
  @onselect = @options.onselect
