 class ProviderInformation
   constructor: (@ui) ->
     {@editor, @provider} = @ui
-    @disposables = new CompositeDisposable
-
     @container = document.createElement('div')
     @container.className = 'narrow-provider-information'
     @container.innerHTML = """

    @wholeWordButton.addEventListener('click', @toggleSearchWholeWord)

  destroy: ->
    @disposables.destroy()
    @marker?.destroy()

  # Can be called multiple times

  toggleSearchWholeWord: => @ui.toggleSearchWholeWord()

  activateToolTips: ->
    @toolTipDisposables?.dispose()
    @toolTipDisposables = disposables = new CompositeDisposable

    disposables.add atom.tooltips.add @wholeWordButton,
      title: "wholeWord"
      keyBindingCommand: 'narrow-ui:toggle-search-whole-word'
      keyBindingTarget: @ui.editorElement

    disposables.add atom.tooltips.add @ignoreCaseButton,
      title: "ignoreCase"
      keyBindingCommand: 'narrow-ui:toggle-search-ignore-case'
      keyBindingTarget: @ui.editorElement
