 class ParagraphButtons
-
-  constructor: ->
-    @_paragraphButtons = []
 
   _paragraphHasContent: (el) ->
     $clonedEl = $(el).clone()

    $(selector).distinctDescendants().filter(':visible')

  addParagraphButtons: ->
    for paragraphButton in @_paragraphButtons
      paragraphButton.destroy()

    @_addParagraphButtonsBatch @_paragraphElements()
    FactlinkJailRoot.perf.add_timing_event 'paragraph buttons added'


  _addParagraphButton: (el) ->
    return unless @_paragraphHasContent(el)

    new FactlinkJailRoot.ParagraphIconButtonContainer el

  _addParagraphButtonsBatch: (elements) ->
    for el in elements[0...10]
