function flushBuffer() {
          if (fileBuffer.length > 0 && original_fnAdd) {
            var tempBuffer = fileBuffer;
            fileBuffer = [];

            original_fnAdd(null, tempBuffer);
          }

          flushTimer = null;
        }
function flushBuffer() {
          if (fileBuffer.length > 0 && original_fnAdd) {
            var tempBuffer = fileBuffer;
            fileBuffer = [];

            original_fnAdd(null, tempBuffer);
          }

          flushTimer = null;
        }
function flushBuffer ( ) { if ( fileBuffer . length > 0 && original_fnAdd ) { var tempBuffer = fileBuffer ; fileBuffer = [ ] ; original_fnAdd ( null , tempBuffer ) ; } flushTimer = null ; }
Setup the buffer timer to flush contents
Setup the buffer timer to flush contents