hive/html/jquery/3rd/PapaParse-4.0.7/papaparse.js
// Callback when worker thread receives a message
Callback when worker thread receives a message
Callback when worker thread receives a message
function workerThreadReceivedMessage(e)
    {
        var msg = e.data;
        if (typeof Papa.WORKER_ID === 'undefined' && msg)
            Papa.WORKER_ID = msg.workerId;
        if (typeof msg.input === 'string')
        {
            global.postMessage({
                workerId: Papa.WORKER_ID,
                results: Papa.parse(msg.input, msg.config),
                finished: true
            });
        }
        else if ((global.File && msg.input instanceof File) || msg.input instanceof Object)    
        {
            var results = Papa.parse(msg.input, msg.config);
            if (results)
                global.postMessage({
                    workerId: Papa.WORKER_ID,
                    results: results,
                    finished: true
                });
        }
    }
function workerThreadReceivedMessage ( e ) { var msg = e . data ; if ( typeof Papa . WORKER_ID === 'undefined' && msg ) Papa . WORKER_ID = msg . workerId ; if ( typeof msg . input === 'string' ) { global . postMessage ( { workerId : Papa . WORKER_ID , results : Papa . parse ( msg . input , msg . config ) , finished : true } ) ; } else if ( ( global . File && msg . input instanceof File ) || msg . input instanceof Object ) { var results = Papa . parse ( msg . input , msg . config ) ; if ( results ) global . postMessage ( { workerId : Papa . WORKER_ID , results : results , finished : true } ) ; } }
Callback when worker thread receives a message
Callback when worker thread receives a message
// thank you, Safari (see issue #106)