Issue 226: `destroy` method
Status:  Released
Owner:
Closed:  Aug 2013
Project Member Reported by adamrs...@gmail.com, Dec 3, 2009
for removing the fullcalendar element, any event handlers, and any data.
jqueryui widgets have this, fullcalendar should too

Dec 4, 2009
#2 auldrid...@gmail.com
I am currently doing the following

  //Build it
  $( '#CalContainer' ).fullCalendar( {} );
  
  //Destroy it
  $( '#CalContainer' ).removeData( 'fullCalendar' ).empty();
  
Does this seem like the right thing to do until the destroy method is added?

Thanks,
Jim
Dec 8, 2009
Project Member #3 adamrs...@gmail.com
for all intents and purposes, it is exactly the same thing, empty() works just fine.

fullcalendar attaches some data (via this method:
http://docs.jquery.com/Internals/jQuery.data) to the element, so this would get
cleared as well. will release some memory. but not major
Dec 22, 2009
Project Member #4 adamrs...@gmail.com
i added a destroy method to v1.4.3 (just released). it removes the fullcalendar
elements, data, and event handlers. completely restores things to the way they were
before the fullcalendar was initialized
Status: Fixed
Dec 22, 2009
#5 auldrid...@gmail.com
Thanks Adam.  I love this plugin and appreciate your work.

Jim
Feb 24, 2012
#6 vralche...@gmail.com
How to clean data between the view switching. Because for month view I use one data, and for week and day - the other.
Aug 13, 2013
Project Member #7 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Implemented
Aug 13, 2013
Project Member #8 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Released