 
 # Public API
 #   Turbolinks.visit(url)
-#   Turbolinks.pagesCached() 
+#   Turbolinks.pagesCached()
 #   Turbolinks.pagesCached(20)
 @Turbolinks = { visit, pagesCached }

    link.href = url
  link.href.replace link.hash, ''

triggerEvent = (name) ->
  event = document.createEvent 'Events'
  event.initEvent name, true, true
  document.dispatchEvent event




fetchReplacement = (url) ->
  triggerEvent 'page:fetch', url: url

  # Remove hash from url to ensure IE 10 compatibility
  safeUrl = removeHash url
