   # Page snapshots
 
   saveSnapshot: ->
-    if @locationLoaded
+    if @responseLoaded
       snapshot = @view.saveSnapshot()
       @cache.put(@location, snapshot)
 


  loadResponse: (response) ->
    @view.loadHTML(response)
    @locationLoaded = true
    @notifyApplicationOfPageChange()

  # Current request


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

