-outerHTML = (element) ->
-    return element.outerHTML if element.outerHTML
-    tmp = document.createElement("div")
-    tmp.appendChild(element)
-    tmp.innerHTML
-
 class AbstractChosen
 
   constructor: (@form_field, @options={}) ->

    option_el.setAttribute("data-option-array-index", option.array_index)
    option_el.innerHTML = option.search_text

    outerHTML(option_el)

  result_add_group: (group) ->
    return '' unless group.search_match || group.group_match

  @default_multiple_text: "Select Some Options"
  @default_single_text: "Select an Option"
  @default_no_result_text: "No results match"

