     @_extractLink()
     if @_validForTurbolinks()
       visit @link.href unless pageChangePrevented(@link.absolute)
-      @event.preventDefault() 
+      @event.preventDefault()
 
   _extractLink: ->
     link = @event.target


  shouldIgnore: ->
    @crossOrigin() or
      @_anchored() or 
      @_nonHtml() or 
      @_optOut() or 
      @_target()

  _anchored: ->



# The ComponentUrl class converts a basic URL string into an object
# that behaves similarly to document.location.
#
# If an instance is created from a relative URL, the current document
# is used to fill in the missing attributes (protocol, host, port).
class ComponentUrl
  constructor: (@original = document.location.href) ->
    return @original if @original.constructor is ComponentUrl
