Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup of generated elements? #54

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

Cleanup of generated elements? #54

burin opened this issue Aug 8, 2012 · 2 comments

Comments

@burin
Copy link

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).

@Twipped
Copy link
Owner

Twipped commented Aug 27, 2012

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
Copy link

please also, dont forget to clean the assigned events.

@Twipped Twipped closed this as completed Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants