         .morph()
           .with('fadein', 150)
           .and('expandv', 150)
-          .and =>
+          .and ->
             _.dropdown.animate().style('top', y + 'px', 150)
           .then =>
             if _.useScroll and _.dropdown?

      ddClass: ''
    }, options)

    setupDropdown = switch
      when hx.isString(dropdownContent)
        (node) -> hx.select(node).html(dropdownContent)
      when hx.isFunction(dropdownContent)
        (node) -> dropdownContent(node)
      else
        hx.consoleWarning('dropdown: dropdownContent is not a valid type. dropdownContent: ', dropdownContent)
        () ->

    clickDetector = new hx.ClickDetector
    clickDetector.on 'click', 'hx.dropdown', => @hide()

    y: y,
    direction: direction
  }

dropdownContentToSetupDropdown = (dropdownContent) ->
  setupDropdown = switch
    when hx.isString dropdownContent
      (node) -> hx.select(node).html(dropdownContent)
    when hx.isFunction dropdownContent
      dropdownContent
    else
      hx.consoleWarning 'dropdown: dropdownContent is not a valid type. dropdownContent: ', dropdownContent
      -> undefined

class Dropdown extends hx.EventEmitter

