nashio / star-rating-svg

A star rating jQuery plugin that uses SVG for easier customization
http://nashio.github.io/star-rating-svg/demo
MIT License
355 stars 156 forks source link

unload method #7

Closed binskeep closed 8 years ago

binskeep commented 8 years ago

In the public unload function, it appears you were missing a 's' in $stars. I added it to my script and it appears to work.

` unload: function(){ var name = 'plugin' + pluginName; var $el = $(this); var $star = $el.data(_name).$stars; $el.removeData(_name); $star.off(); }

nashio commented 8 years ago

Thanks!