   documentation: null
   disposables: []
   client: null
+  orientation: null
 
   constructor: (client, state = {}) ->
     state.attached ?= true


    @documentation = new DocumentationView()
    @documentation.initialize(state)
    @documentationPanel = atom.workspace.addBottomPanel(item: @documentation, priority: 0)
    @documentationPanel.hide()

    atom.views.getView(@documentationPanel).classList.add("atom-ternjs-documentation-panel", "panel-bottom")

  set: (data) ->
    @documentation.setTitle(data.word, data.label)
    @documentation.setContent(data.docs)
    @show()

  destroy: ->
    @documentation?.destroy()
    @documentation = null
