```coffeescript
Backbone.Factlink ||= {}

class Backbone.Factlink.LocalStorageTextModel extends Backbone.Model
  constructor: (attributes, options) ->
    super

    @set 'text', localStorage?[options.key] ? ''
    @on 'change:text', (model, value) ->
      localStorage[options.key] = value if localStorage?
```

Use session storage instead of local storage
user
```coffeescript
Backbone.Factlink ||= {}

class Backbone.Factlink.LocalStorageTextModel extends Backbone.Model
  constructor: (attributes, options) ->
    super

    @set 'text', sessionStorage?[options.key] ? ''
    @on 'change:text', (model, value) ->
      sessionStorage[options.key] = value if sessionStorage?
```
assistant