I am trying to create a trigger the occurs immediately after all event sources have finished, and events have been rendered into memory (queryable through "clientEvents"). Unfortunately the "loading" hook is fired JUST before events are actually loaded into memory, so this:
function loading(isLoading, view) {
if(!isLoading){
... .fullCalendar("clientEvents",
}
}
Produces an empty array.
However if I instead do a setTimeout() timer for 1ms inside of the loading hook, then I get results when calling "clientEvents":
function loading(isLoading, view) {
if(!isLoading){
setTimeout("... .fullCalendar("clientEvents" ... ", 1);
}
}
So I think that we need a hook point that occurs right after events are actually loaded into memory or we need to modify the existing "loading" hook so that it fires after events are in memory.
FYI, using "eventAfterRender" is not what I am looking for since I only want to act after the LAST event (read: all events) has been rendered. I am generating stats from the calender, and using "clientEvents" to query to build my metrics.
-Brian