 
   loadResponse: (response) ->
     @view.loadHTML(response)
+    @locationLoaded = true
     @notifyApplicationOfPageChange()
 
   # Current request


  locationChangedByActor: (location, actor) ->
    @saveSnapshot()
    @location = location
    @adapter.locationChangedByActor(location, actor)


  # Page snapshots

  saveSnapshot: ->
    if @locationLoaded
      snapshot = @view.saveSnapshot()
      @cache.put(@location, snapshot)

  hasSnapshotForLocation: (location) ->
    @cache.has(location)
