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

Added a destroy method. #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lightswitch05
Copy link

I needed a way to stop a word cloud mid-render. In order to accomplish this, it has to keep track of the timeout IDs. Even more, the jQCloud object needed to persistant.

Destroy method keeps tracks of all unfired timeouts and clears them. It also clears any words in the word cloud and their attached event listeners. Finally it removes the jqcloud class.

Destroy method keeps tracks of all unfired timeouts and clears them. It
also clears any words in the word cloud and their attached event
listeners. Finally it removes the jqcloud class.
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

Successfully merging this pull request may close these issues.

1 participant