src/aria/pageEngine/pageProviders/BasePageProvider.js
function (res, cb) {
            if (res.downloadFailed) {
                this.__onFailure(res, cb.args);
            } else {
                var fileContent = ariaCoreDownloadMgr.getFileContent(res.logicalPaths[0]);
                var responseJSON = ariaUtilsJson.load(fileContent);
                if (responseJSON) {
                    this.$callback(cb, responseJSON);
                } else {
                    this.__onFailure(res, cb.args);
                }
            }
        }
function (res, cb) {
            if (res.downloadFailed) {
                this.__onFailure(res, cb.args);
            } else {
                var fileContent = ariaCoreDownloadMgr.getFileContent(res.logicalPaths[0]);
                var responseJSON = ariaUtilsJson.load(fileContent);
                if (responseJSON) {
                    this.$callback(cb, responseJSON);
                } else {
                    this.__onFailure(res, cb.args);
                }
            }
        }
function ( res , cb ) { if ( res . downloadFailed ) { this . __onFailure ( res , cb . args ) ; } else { var fileContent = ariaCoreDownloadMgr . getFileContent ( res . logicalPaths [ 0 ] ) ; var responseJSON = ariaUtilsJson . load ( fileContent ) ; if ( responseJSON ) { this . $callback ( cb , responseJSON ) ; } else { this . __onFailure ( res , cb . args ) ; } } }
Retrieve the file content after it has been downloaded and parses it to turn it into a JSON object
@param {Object} res Response received from the loadFile method of aria.core.DownloadManager
@param {aria.core.CfgBeans:Callback} cb Callback to be called after the response has been parsed
Retrieve the file content after it has been downloaded and parses it to turn it into a JSON object