lost+found/src/xml.js
function (event) {
            var
                eventsHandler;
            if (event
                && event.type() === _gpfI.IWritableStream.EVENT_ERROR) {
                gpfFireEvent.call(this, event, this._eventsHandler);
            } else if (0 === this._buffer.length) {
                eventsHandler = this._eventsHandler;
                this._eventsHandler = null;
                gpfFireEvent.call(this, _gpfI.IWritableStream.EVENT_READY, eventsHandler);
            } else {
                this._stream.write(this._buffer.shift(), this._flushed.bind(this));
            }
        }
function (event) {
            var
                eventsHandler;
            if (event
                && event.type() === _gpfI.IWritableStream.EVENT_ERROR) {
                gpfFireEvent.call(this, event, this._eventsHandler);
            } else if (0 === this._buffer.length) {
                eventsHandler = this._eventsHandler;
                this._eventsHandler = null;
                gpfFireEvent.call(this, _gpfI.IWritableStream.EVENT_READY, eventsHandler);
            } else {
                this._stream.write(this._buffer.shift(), this._flushed.bind(this));
            }
        }
function ( event ) { var eventsHandler ; if ( event && event . type ( ) === _gpfI . IWritableStream . EVENT_ERROR ) { gpfFireEvent . call ( this , event , this . _eventsHandler ) ; } else if ( 0 === this . _buffer . length ) { eventsHandler = this . _eventsHandler ; this . _eventsHandler = null ; gpfFireEvent . call ( this , _gpfI . IWritableStream . EVENT_READY , eventsHandler ) ; } else { this . _stream . write ( this . _buffer . shift ( ) , this . _flushed . bind ( this ) ) ; } }
Handle write event on stream

@param {gpf.events.Event} event
@private
Handle write event on stream