Issue 2187: Removed events re-show after week change
Status:  Released
Owner: ----
Closed:  Jun 2014
Reported by falecom...@guilhermeantonio.com.br, Jun 18, 2014
If you click in a event, this event will be removed and i create another in the same date with yellow background. But when i change weeks or calendar view, the removed event is reattached to calendar.

If you get clientEvents just after a click (Remove event, and create another) length of events object will be the 20 (same as before, 1 removed, 1 inserted). But after change weeks length of object will be 21 (1 inserted and removed event was reattached ).

Sorry for possible english mistakes
Jun 18, 2014
#1 falecom...@guilhermeantonio.com.br
http://jsfiddle.net/5Bjz9/1/ fiddle link that i missed.
Jun 18, 2014
#2 falecom...@guilhermeantonio.com.br
The same problems happens when i update an event
Jun 19, 2014
Project Member #3 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Reproducing
Labels: Type-Bug
Jun 23, 2014
Project Member #4 adamrs...@gmail.com
I can reproduce this. note to self: http://jsfiddle.net/5Bjz9/2/
Status: Accepted
Jun 24, 2014
#5 van.wijg...@mdxs.net
Perhaps http://jsfiddle.net/wijgerden/WfLhu/ provides an even simpler way to reproduce the bug; uncomment the "//$('#calendar').fullCalendar('refetchEvents')" line to see that in fact the event returns when fetching the event data again.

Debugging, I've found that "function removeEvents(filter)" in "src/EventManager.js" is using a "filter = function(e) { return e._id == id; };" which seems to catch the requested events in the "cache" (they have "_id" properties), but *NOT* in the "sources"; I think this is because they don't have "_id" properties... while they do seem to have "id" properties (at least in the given fiddle).
Jun 24, 2014
#6 van.wijg...@mdxs.net
Added a "_id" to one of the events in my fiddle, in http://jsfiddle.net/wijgerden/WfLhu/27/ this is done for the "124" event, does get it deleted permenantly... not sure about side-effects though.
Jun 24, 2014
Project Member #8 adamrs...@gmail.com
released: https://github.com/arshaw/fullcalendar/releases

thanks for the bug reports & fiddles
Status: Released