Skip to content Skip to sidebar Skip to footer

Fullcalendar Removeeventsource Not Working When Event Source Is Object Property

http://jsfiddle.net/minlare/4G75c/ If you take a look at the above fiddle I add/remove multiple event sources using buttons. removeEventSource method is not working and repeated cl

Solution 1:

As of version 2.0.2 (current as of this reply) the issue appears to be related to the way event sources are added; if you examine the code, the buildEventSource function, which is called from within addEventSource, converts the source data before adding it to the calendar. The removeEventSource function does not reverse the conversion and, as a result, there is no match found and the event source is not removed.

I reported a related bug two weeks ago but it still has not been accepted. Basically, your options are to dig into the code yourself and develop a workaround, or wait for a release that addresses the issue. I have incorporated a workaround for my specific situation but it is not universal; if the bug isn't accepted within the following week I will incorporate a more permanent (and universal) fix.

Post a Comment for "Fullcalendar Removeeventsource Not Working When Event Source Is Object Property"