public/fullcalendar/resource-common/main.esm.js
/*
mark resources as having events if any of their ancestors have them
NOTE: resourceStore might not have all the resources that hasEvents{} has keyed
*/
mark resources as having events if any of their ancestors have them
NOTE: resourceStore might not have all the resources that hasEvents{} has keyed
mark resources as having events if any of their ancestors have them NOTE : resourceStore might not have all the resources that hasEvents {} has keyed
function computeAncestorHasEvents(hasEvents, resourceStore) {
    var res = {};
    for (var resourceId in hasEvents) {
        var resource = void 0;
        while ((resource = resourceStore[resourceId])) {
            resourceId = resource.parentId; 
            if (resourceId) {
                res[resourceId] = true;
            }
            else {
                break;
            }
        }
    }
    return res;
}
function computeAncestorHasEvents ( hasEvents , resourceStore ) { var res = { } ; for ( var resourceId in hasEvents ) { var resource = void 0 ; while ( ( resource = resourceStore [ resourceId ] ) ) { resourceId = resource . parentId ; if ( resourceId ) { res [ resourceId ] = true ; } else { break ; } } } return res ; }
mark resources as having events if any of their ancestors have them
NOTE: resourceStore might not have all the resources that hasEvents{} has keyed
mark resources as having events if any of their ancestors have them NOTE : resourceStore might not have all the resources that hasEvents {} has keyed
// now functioning as the parentId