         blockView = @findOrCreateCachedChildView(Trix.BlockView, block, {blockIndex})
         @element.appendChild(blockView.render())
 
-    @renderCount++
     @didRender()
     @element
 

    @findViewForObject(object)?.reRender()

  didRender: ->
    if @renderCount % GC_FREQUENCY is 0
      defer => @garbageCollectCachedViews()

  focus: ->
    @element.focus()

{defer} = Trix.Helpers

class Trix.DocumentView extends Trix.ObjectView
  constructor: ->
    super
    @document = @object
    {@element} = @options

  render: ->
    @childViews = []
