Issue 586: refetchEvents bug - does not clear existing events under certain conditions
Status:  Released
Owner: ----
Closed:  Aug 2013
Reported by spandit, Aug 4, 2010
fullCalendar fetches data via JSON; When calling refetchEvents multiple times, it does not remove existing event objects. Calling removeEvents in between refetchEvents has no effect.

Try this to see bug in action:

function calendar_refresh()
{
  calendar.fullCalendar('removeEvents');
  calendar.fullCalendar('refetchEvents');
  calendar.fullCalendar('refetchEvents');
  calendar.fullCalendar('refetchEvents');
  calendar.fullCalendar('refetchEvents');
  return true;
}

Aug 4, 2010
#1 spandit
Just a quick update, you can reproduce the bug by using the example page at:
http://arshaw.com/js/fullcalendar/examples/json.html

Open up your javascript console, and execute:
$('#calendar').fullCalendar('refetchEvents');$('#calendar').fullCalendar('refetchEvents');$('#calendar').fullCalendar('refetchEvents');$('#calendar').fullCalendar('refetchEvents');$('#calendar').fullCalendar('refetchEvents');
Aug 25, 2010
Project Member #2 adamrs...@gmail.com
will fix this bug. thanks for the report.
Status: Accepted
Labels: Type-Defect
Sep 28, 2010
#4 spandit
Awesome, it appears to be working!
Sep 28, 2010
#5 tanguy.pruvot@gmail.com
yea, tested on chrome 7 and ie9, but sometimes events are not fetched when we switch month/week while events are already loading
Sep 28, 2010
#7 tanguy.pruvot@gmail.com
And the enhanced version (need first patch) #3

http://github.com/tpruvot/fullcalendar/commit/c2908eef257699a4331c4758c3153deb255f673c

which correct another issue too, when you switch view while loading...
Oct 16, 2010
Project Member #9 adamrs...@gmail.com
this has been fixed in v1.4.8 (just released)
Status: Fixed
Aug 13, 2013
Project Member #10 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Implemented
Aug 13, 2013
Project Member #11 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Released