vodkabears / Remodal

No longer actively maintained.
http://vodkabears.github.io/remodal/
MIT License
2.76k stars 774 forks source link

Fix issue caused by calling remodal.close() when it is already closed #251

Closed brentswisher closed 7 years ago

brentswisher commented 8 years ago

Add check to remodal.prototype.close function to return; if remodal.state is already closed. Currently if remodal.close() is called multiple times the modal will hang in CLOSING and become unresponsive. Fixes #241 and #246