   destroy: =>
     @frame.destroy()
     @_robustHover.destroy()
+    $(window).off 'resize', @_updatePosition
+    clearInterval @_interval
+    @$boundingBox?.remove()
 
 class FactlinkJailRoot.ShowButton extends Button
   content: '<div class="fl-icon-button"><span class="icon-comment"></span></div>'

    @_showAtCoordinates top, left


class ParagraphButton
  constructor: (@el) ->
    @$el = $(@el)

    # TODO: actually show icon

    if FactlinkJailRoot.can_haz.debug_bounding_boxes
      contentBox = FactlinkJailRoot.contentBox(el)

      @$boundingBox = FactlinkJailRoot.drawBoundingBox contentBox, 'green'

  remove: ->
    @$boundingBox?.remove()


class FactlinkJailRoot.ParagraphButtons

    return unless @_paragraphHasContent(el)
    return if @_containsFactlink(el)

    @_paragraphButtons.push new ParagraphButton el: el

  addParagraphButtons: ->
    return unless FactlinkJailRoot.can_haz.paragraph_icons

    for paragraphButton in @_paragraphButtons
      paragraphButton.destroy()

    for el in $('p, h2, h3, h4, h5, h6')
      @_addParagraphButton el
