```coffeescript
ScriptView = require './script-view'

module.exports =
  scriptView: null

  activate: (state) ->
    @scriptView = new ScriptView(state.scriptViewState)

  deactivate: ->
    @scriptView.destroy()

  serialize: ->
    scriptViewState: @scriptView.serialize()
```

Destroy no longer exists, now it's close
user
```coffeescript
ScriptView = require './script-view'

module.exports =
  scriptView: null

  activate: (state) ->
    @scriptView = new ScriptView(state.scriptViewState)

  deactivate: ->
    @scriptView.close()

  serialize: ->
    scriptViewState: @scriptView.serialize()
```
assistant