function waitUntilAssetsDownloadedThen(callback) {
        var allAssetsDownloaded = true;
        for (var i = 0; i < SolarSystem.length; i++) {
            if (!SolarSystem[i].isReady) {
                allAssetsDownloaded = false;
                break;
            }
        }

        if (allAssetsDownloaded) {
            callback();
        }
        else {
            setTimeout(function () {
                waitUntilAssetsDownloadedThen(callback);
            }, 25);
        }
    }
/**
     * Waits until each Astronomical Object has declared it is ready to be rendered, i.e. texture images have been downloaded.
     * @method waitUntilAssetsDownloadedThen
     * @param  {Function} callback The function to call once all assets are downloaded.
     */
Waits until each Astronomical Object has declared it is ready to be rendered, i.e. texture images have been downloaded.
@method waitUntilAssetsDownloadedThen
@param  {Function} callback The function to call once all assets are downloaded.
Waits until each Astronomical Object has declared it is ready to be rendered i . e . texture images have been downloaded . @method waitUntilAssetsDownloadedThen @param { Function } callback The function to call once all assets are downloaded .
function waitUntilAssetsDownloadedThen(callback) {
        var allAssetsDownloaded = true;
        for (var i = 0; i < SolarSystem.length; i++) {
            if (!SolarSystem[i].isReady) {
                allAssetsDownloaded = false;
                break;
            }
        }
        if (allAssetsDownloaded) {
            callback();
        }
        else {
            setTimeout(function () {
                waitUntilAssetsDownloadedThen(callback);
            }, 25);
        }
    }
function waitUntilAssetsDownloadedThen ( callback ) { var allAssetsDownloaded = true ; for ( var i = 0 ; i < SolarSystem . length ; i ++ ) { if ( ! SolarSystem [ i ] . isReady ) { allAssetsDownloaded = false ; break ; } } if ( allAssetsDownloaded ) { callback ( ) ; } else { setTimeout ( function ( ) { waitUntilAssetsDownloadedThen ( callback ) ; } , 25 ) ; } }
Waits until each Astronomical Object has declared it is ready to be rendered, i.e.
Waits until each Astronomical Object has declared it is ready to be rendered i . e .