jQCloud icon indicating copy to clipboard operation
jQCloud copied to clipboard

Added a destroy method.

Open lightswitch05 opened this issue 11 years ago • 0 comments

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.

lightswitch05 avatar Nov 14 '13 01:11 lightswitch05