CodeDistillery / angular-no-captcha

Angular.JS wrapper for Google's No CAPTCHA reCAPTCHA
http://codedistillery.github.io/angular-no-captcha/
MIT License
42 stars 21 forks source link

Ensure grecaptcha reset exists #23

Closed tjokimie closed 9 years ago

tjokimie commented 9 years ago

Error will be thrown if destroy hook gets called before grecaptcha is initialized.

This pr fixes the issue by checking if the grecaptcha exists.

vepasto commented 9 years ago

Thanks!

tjokimie commented 9 years ago

Awesome, thanks for accepting! :)

vepasto commented 9 years ago

Added tag https://github.com/CodeDistillery/angular-no-captcha/releases/tag/v0.4.5