     $element.closest('.up-popup').length > 0
 
   ###*
-  Opens the target of this link in a popup overlay:
-
-      <a href="/decks" up-modal=".deck_list">Switch deck</a>
+  Opens this link's destination of in a popup overlay:
+
+      <a href="/decks" up-popup=".deck_list">Switch deck</a>
 
   If the `up-sticky` attribute is set, the dialog does not auto-close
   if a page fragment below the popup overlay updates:

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

  open: open
  close: close
  source: source
  defaults: config.update
  contains: contains
  
)(jQuery)

    open even if the page changes in the background.
  @param {Object} [options.history=false]
  ###
  attach = (linkOrSelector, options) ->
    $link = $(linkOrSelector)
    
    options = u.options(options)
