VividCortex / angular-recaptcha

AngularJS directive to add a reCaptcha widget to your form
http://vividcortex.github.io/angular-recaptcha/
MIT License
496 stars 257 forks source link

"Undefined is not a function" #54

Closed sb89 closed 9 years ago

sb89 commented 9 years ago

After verifying I'm not a robot, I'm receiving the following error:

TypeError: undefined is not a function
at cleanup (VM22475 angular-recaptcha.js:188)
at VM22475 angular-recaptcha.js:152
at angular.js:16223
at e (angular.js:4905)
at angular.js:5285

Which seems to be occurring at the following line:

 function cleanup(){
   // removes elements reCaptcha added.
    angular.element($document.querySelectorAll('.pls-container')).parent().remove();
  }
iambrosi commented 9 years ago

A PR has been opened for this at #53