function validateIfQueueLoaded(resolve) {
        // iterate through items in queue in reverse
        for (var i = queuedPaths.length - 1; i >= 0; i--) {
            var path = queuedPaths[i];
            if (resources[path].loaded)
                queuedPaths.splice(i, 1);
        }
        if (queuedPaths.length === 0) {
            // important: set loading before calling resolve(), in case resolution involves loading more resources
            loading = false;
            internalLoad = false;
            if (typeof resolve === "function") resolve();
        }
    }
/**
     * Validates if all resource corresponding to the paths in the queue have been loaded
     * @param {function} resolve Callback function to be executed if all resources are loaded
     */
Validates if all resource corresponding to the paths in the queue have been loaded
@param {function} resolve Callback function to be executed if all resources are loaded
Validates if all resource corresponding to the paths in the queue have been loaded @param { function } resolve Callback function to be executed if all resources are loaded
function validateIfQueueLoaded(resolve) {
        for (var i = queuedPaths.length - 1; i >= 0; i--) {
            var path = queuedPaths[i];
            if (resources[path].loaded)
                queuedPaths.splice(i, 1);
        }
        if (queuedPaths.length === 0) {
            loading = false;
            internalLoad = false;
            if (typeof resolve === "function") resolve();
        }
    }
function validateIfQueueLoaded ( resolve ) { for ( var i = queuedPaths . length - 1 ; i >= 0 ; i -- ) { var path = queuedPaths [ i ] ; if ( resources [ path ] . loaded ) queuedPaths . splice ( i , 1 ) ; } if ( queuedPaths . length === 0 ) { loading = false ; internalLoad = false ; if ( typeof resolve === "function" ) resolve ( ) ; } }
Validates if all resource corresponding to the paths in the queue have been loaded
 @param {function} resolve Callback function to be executed if all resources are loaded
Validates if all resource corresponding to the paths in the queue have been loaded @param { function } resolve Callback function to be executed if all resources are loaded
// iterate through items in queue in reverse // important: set loading before calling resolve(), in case resolution involves loading more resources