function checkFoldersForMissingDependencies() {
        if (areThereMissingDependencies()) {
            Sylx.log("Sylx: Checking content folders for missing dependencies");
            Object.keys(modules).forEach(function (name) {
                // Find "content" modules (folders)
                var module = modules[name];
                if (module.contents) {
                    // flag content modules as loaded now
                    module.loaded = true;
                    if (dependenciesQueue[name]) {
                        // iterate through dependencies backwards
                        for (var index = dependenciesQueue[name].length - 1; index >= 0; index--) {
                            checkForDependencies(modules[dependenciesQueue[name][index]], name);
                        }
                    }
                }
            });
            if (areThereMissingDependencies()) throw ("UNRESOLVED DEPENDENCIES!");
        }
        Sylx.log("Sylx: All modules loaded successfully!");
        callFirstFrame.call(Sylx, runCallback);
    }
/**
     * Checks all folders for dependencies that might need to be added still
     */
Checks all folders for dependencies that might need to be added still
Checks all folders for dependencies that might need to be added still
function checkFoldersForMissingDependencies() {
        if (areThereMissingDependencies()) {
            Sylx.log("Sylx: Checking content folders for missing dependencies");
            Object.keys(modules).forEach(function (name) {
                var module = modules[name];
                if (module.contents) {
                    module.loaded = true;
                    if (dependenciesQueue[name]) {
                        for (var index = dependenciesQueue[name].length - 1; index >= 0; index--) {
                            checkForDependencies(modules[dependenciesQueue[name][index]], name);
                        }
                    }
                }
            });
            if (areThereMissingDependencies()) throw ("UNRESOLVED DEPENDENCIES!");
        }
        Sylx.log("Sylx: All modules loaded successfully!");
        callFirstFrame.call(Sylx, runCallback);
    }
function checkFoldersForMissingDependencies ( ) { if ( areThereMissingDependencies ( ) ) { Sylx . log ( "Sylx: Checking content folders for missing dependencies" ) ; Object . keys ( modules ) . forEach ( function ( name ) { var module = modules [ name ] ; if ( module . contents ) { module . loaded = true ; if ( dependenciesQueue [ name ] ) { for ( var index = dependenciesQueue [ name ] . length - 1 ; index >= 0 ; index -- ) { checkForDependencies ( modules [ dependenciesQueue [ name ] [ index ] ] , name ) ; } } } } ) ; if ( areThereMissingDependencies ( ) ) throw ( "UNRESOLVED DEPENDENCIES!" ) ; } Sylx . log ( "Sylx: All modules loaded successfully!" ) ; callFirstFrame . call ( Sylx , runCallback ) ; }
Checks all folders for dependencies that might need to be added still
Checks all folders for dependencies that might need to be added still
// Find "content" modules (folders) // flag content modules as loaded now // iterate through dependencies backwards