mistic100 / jQCloud

jQuery plugin for drawing neat word clouds that actually look like clouds
mistic100.github.io/jQCloud
MIT License
268 stars 106 forks source link

Removed an auto resize event handler on destroy #21

Closed rqman closed 8 years ago

mistic100 commented 8 years ago

You don't need to get the reference to the handler. Use namespaces instead.

$(window).on('resize.' + this.data.namespace, throttle(this.resize, 50, this));

$(window).off('resize.' + this.data.namespace);