   visit = (url) -> document.location.href = url
 
 # Public API
-#   Turbolinks.visit(url)
+#   Turbolinks.visit(url, keepScroll=false)
 #   Turbolinks.pagesCached()
 #   Turbolinks.pagesCached(20)
 #   Turbolinks.enableTransitionCache()

xhr                     = null


fetch = (url) ->
  url = new ComponentUrl url

  rememberReferer()

    return if @event.defaultPrevented
    @_extractLink()
    if @_validForTurbolinks()
      keepScroll = @link.link.getAttribute && @link.link.getAttribute('data-keep-scroll')?
      visit @link.href, keepScroll unless pageChangePrevented()
      @event.preventDefault() 

  _extractLink: ->
