       addEventListener("DOMContentLoaded", @pageLoaded, false)
       @history.start()
       @started = true
+      @enabled = true
+
+  disable: ->
+    @enabled = false
 
   stop: ->
     if @started


  loadErrorResponse: (response) ->
    @view.loadDocumentHTML(response)
    @controller.stop()

  startVisitToLocationWithAction: (location, action) ->
    @startVisit(location, action)

    addEventListener("click", @clickBubbled, false)

  clickBubbled: (event) =>
    if @enabled and @clickEventIsSignificant(event)
      if link = @getVisitableLinkForNode(event.target)
        if location = @getVisitableLocationForLink(link)
          if @applicationAllowsFollowingLinkToLocation(link, location)
