     up.animate($popup, animation, animateOptions)
     
   ###*
-  Opens a popup overlay.
-  
-  @method up.popup.open
+  Attaches a popup overlay to the given element or selector.
+  
+  @method up.popup.attach
   @param {Element|jQuery|String} elementOrSelector
   @param {String} [options.url]
   @param {String} [options.position='bottom-right']

    if $link.is('.up-current')
      close()
    else
      open($link)
  )

  # Close the popup when someone clicks outside the popup

  # The framework is reset between tests
  up.on 'up:framework:reset', reset

  attach: attach
  close: close
  source: source
  defaults: config.update
  contains: contains
  open: (args...) ->
    up.warn('up.popup.open has been renamed to up.popup.attach and will be removed in a future version')
    attach(args...)

)(jQuery)
