   _addParagraphButton: (el) ->
     return unless @_paragraphHasContent(el)
 
-    @_paragraphButtons.push new ParagraphButton el: el
+    @_paragraphButtons.push new ParagraphButton el
 
   addParagraphButtons: ->
     return unless FactlinkJailRoot.can_haz.paragraph_icons


  destroy: ->
    super

    @$highlightElements.off 'mouseenter', @_onHover
    @$highlightElements.off 'mouseleave', @_onUnhover
    @$highlightElements.off 'click', @_onClick


  _onHover: =>
    @frame.addClass 'hovered'

class ParagraphButton extends IconButton
  content: '<div class="fl-icon-button"><span class="icon-comment"></span>+</div>'

  constructor: (paragraphElement) ->
    @frame = new FactlinkJailRoot.ControlIframe()
    @frame.setContent($.parseHTML(@content.trim())[0])
    $el = $(@frame.frameBody.firstChild)

    @_robustHover = new FactlinkJailRoot.RobustHover $el,
      mouseenter: => @frame.addClass 'hovered'
      mouseleave: => @frame.removeClass 'hovered'
    $el.on 'click', @_onClick

    @$paragraph = $(paragraphElement)

    @frame.fadeIn()
    @_updatePositionRegularly()
