Remove duplicate function

This commit is contained in:
Thomas Bruederli 2014-06-26 15:28:17 +02:00
parent 8b81be7707
commit dd2ad15cdc

View file

@ -509,9 +509,9 @@ function Calendar(element, options, eventSources) {
// TODO: going forward, most of this stuff should be directly handled by the view // TODO: going forward, most of this stuff should be directly handled by the view
function refetchEvents() { // can be called as an API method function refetchEvents(source) { // can be called as an API method
clearEvents(); clearEvents();
fetchAndRenderEvents(); fetchAndRenderEvents(source);
} }
@ -547,18 +547,13 @@ function Calendar(element, options, eventSources) {
} }
function fetchAndRenderEvents() { function fetchAndRenderEvents(source) {
fetchEvents(currentView.visStart, currentView.visEnd); fetchEvents(currentView.visStart, currentView.visEnd, source);
// ... will call reportEvents // ... will call reportEvents
// ... which will call renderEvents // ... which will call renderEvents
} }
function refetchEvents(source) {
fetchEvents(currentView.visStart, currentView.visEnd, source); // will call reportEvents
}
// called when event data arrives // called when event data arrives
function reportEvents(_events) { function reportEvents(_events) {
events = _events; events = _events;