     for document in delayed
       delete document.Meta._delayIndex
 
+    processedCount = 0
+
     for document in delayed
       assert not document.Meta._listIndex?
 


      assert not document.Meta._replaced

    @_setDelayedCheck()

  @_addDelayed: (document) ->
    @_clearDelayedCheck()

      @_validateFields document.Meta.fields

  @defineAll: (dontThrowDelayedErrors) ->
    loopMax =>
      globals.Document._retryDelayed not dontThrowDelayedErrors
    globals.Document.validateAll()

    assert dontThrowDelayedErrors or globals.Document._delayed.length is 0
