Skip to content

Cleanup of generated elements? #54

Closed
burin opened this Issue Aug 8, 2012 · 2 comments

3 participants

@burin
burin commented Aug 8, 2012

I was curious if there was a public API for removing the generated calendar markup from the DOM once the instance isn't needed anymore (for example, in single page applications, where instances of Kalendae and Kalendae.Input are created dynamically).

@ChiperSoft
Owner

There is not currently, but you can get ahold of the calendar element by storing the .container property. As long as you've destroy the stored calendar reference and the input it's attached to, it should be perfectly fine to delete that element.

I'll leave this open as a reminder to create a destroy() function.

@viniciuscb

please also, dont forget to clean the assigned events.

@ChiperSoft ChiperSoft closed this Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.