       xhrFields:
         withCredentials: true
       success: (data) ->
+        @previouslySavedContent = data
         callback null, JSON.stringify data
       error: ->
         callback "Unable to load "+metadata.name


tr = require '../utils/translate'
isString = require '../utils/is-string'

ProviderInterface = (require './provider-interface').ProviderInterface
CloudMetadata = (require './provider-interface').CloudMetadata

    @user = null

  @Name: 'documentStore'

  previouslySavedContent: null

  authorized: (@authCallback) ->
    if @authCallback
