Remove duplicate function
This commit is contained in:
parent
8b81be7707
commit
dd2ad15cdc
1 changed files with 4 additions and 9 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue