antennaio / jquery-bar-rating

jQuery Bar Rating Plugin - minimal, light-weight jQuery ratings.
http://antennaio.github.io/jquery-bar-rating/
MIT License
737 stars 260 forks source link

accepts empty string in "set" method. #85

Closed kzmi closed 7 years ago

kzmi commented 7 years ago

"Set" method doesn't accept empty string as the new value because it returns immediately if the option tag has an empty value. In this patch, the code checks existence of the option tag which has the specified value, even if the value was empty, then reject if the option tag was not found.