| Issue 226: | `destroy` method | |
| 1 person starred this issue and may be notified of changes. | Back to list |
for removing the fullcalendar element, any event handlers, and any data. jqueryui widgets have this, fullcalendar should too
Dec 8, 2009
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
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
Thanks Adam. I love this plugin and appreciate your work. Jim
Feb 24, 2012
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
(No comment was entered for this change.)
Status:
Implemented
Aug 13, 2013
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |
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