My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2261: Updating an eventSources properties
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2014


Sign in to add a comment
 
Reported by georg.st...@googlemail.com, Aug 28, 2014
Expected behaviour: 
An eventSources option updates should be recognized when using rerenderEvents.
It works with fullCalendar 2.0.0 (see http://jsfiddle.net/e1enpbbh/)

Actual behaviour:
Option updates are not recognized.
It's broken with fullCalendar 2.1.0 (see http://jsfiddle.net/92hy4hdp/)
Aug 28, 2014
Project Member #1 adamrs...@gmail.com
I see what you're doing here. You are using rerenderEvents in a way that I did not foresee or intend. You are relying upon fullcalendar to pickup up on the side effects of the original array/object. Unfortunately v2 and above makes its own internal copy of each event source and thus your technique won't work.

But you can implement what you want by removing the event source:
http://arshaw.com/fullcalendar/docs/event_data/removeEventSource/

..then making your changes to it.

..then adding it back again:
http://arshaw.com/fullcalendar/docs/event_data/addEventSource/
Status: Done
Sign in to add a comment

Powered by Google Project Hosting