 
     whenClosed
 
-
   ###*
   Displays a tooltip with text content when hovering the mouse over this element:
 

  doNextAction = ->
    if state.nextAction
      action = state.nextAction # give it another name before we set it to undefined
      state.nextAction = undefined
      action()

  ###*


  # The framework is reset between tests, so also close
  # a currently open tooltip.
  up.on 'up:framework:reset', reset

  # Close the tooltip when the user presses ESC.
  up.bus.onEscape(-> close())


  config: config
  attach: attach
