     @state.shareProviders[providerName] = checked
     @forceUpdate()
 
-  _onSearchInsert: (text) =>
+  _onSearchInsert: (text) ->
     @refs.textarea.insert text
     @setState searchOpened: false
 

      content: $.trim(@state.text)
      created_by: currentUser.toJSON()

  _factSearchResults: ->
    unless @____factSearchResults
      recently_viewed_facts = new RecentlyViewedFacts
      recently_viewed_facts.fetch()

      @____factSearchResults = new FactSearchResults [],
        fact_id: @model().fact.id
        recently_viewed_facts: recently_viewed_facts

    @____factSearchResults

          ReactSearchLink
            opened: @state.searchOpened
            onToggle: (opened) => @setState searchOpened: opened
          ReactSearchFacts
            opened: @state.searchOpened
            fact: @model()
            onInsert: @_onSearchInsert

  _onTextareaChange: (text) ->
    @setState(text: text)
