bootup.js
/**
     * Processes an AJAX response after a downloading a file. Adding it to the loaded files array,
     * kicking off any callbacks, and loading any new files in the queue.
     * @private
     * @param path the file path that loaded.
     * @param {XMLHttpRequest} request the XMLHttpRequest object with the response.
     */
Processes an AJAX response after a downloading a file. Adding it to the loaded files array,
kicking off any callbacks, and loading any new files in the queue.
@private
@param path the file path that loaded.
@param {XMLHttpRequest} request the XMLHttpRequest object with the response.
Processes an AJAX response after a downloading a file . Adding it to the loaded files array kicking off any callbacks and loading any new files in the queue . @private @param path the file path that loaded . @param { XMLHttpRequest } request the XMLHttpRequest object with the response .
function processResponse(path, request) {
        var item = getFileInfo(path);
        item.data = request.responseText;
        downloadedCount++;
        threads--;
        if (item.callback) {
            item.callback.call(this, path);
        }
        if (callbackLoaded) {
            callbackLoaded.call(this, downloadedCount, fileCount, path);
        }
        checkCompleted();
        getNextQueue();
    }
function processResponse ( path , request ) { var item = getFileInfo ( path ) ; item . data = request . responseText ; downloadedCount ++ ; threads -- ; if ( item . callback ) { item . callback . call ( this , path ) ; } if ( callbackLoaded ) { callbackLoaded . call ( this , downloadedCount , fileCount , path ) ; } checkCompleted ( ) ; getNextQueue ( ) ; }
Processes an AJAX response after a downloading a file.
Processes an AJAX response after a downloading a file .