fredolss/rater-js

Reset rater-js

spacecat opened this issue · 2 comments

How do I reset the rater after a user has rated something once?

Do I call dispose() and then reinitialize the rater object? Or can I disable and then enable it using disable() and enable()? Or do I just set the rating back to 0 with setRating()?

there is no method for this right now. I plan to add a clear or reset method. You can use setRating and pass in undefined

Added clear method so this is supported now.