toniton / angular-paystack

This is an angular library for implementing paystack payment gateway
GNU General Public License v3.0
7 stars 5 forks source link

Error: angular.element(...).click is not a function #2

Closed iamonuwa closed 7 years ago

iamonuwa commented 7 years ago

I just discovered that on page load, the library displays this error message...

iamonuwa commented 7 years ago

I just resolved the problem by changing the

angular.element(element).click(function () {});

to

angular.element(element).bind('click', function () {});

toniton commented 7 years ago

Just checked and everything works fine on my end, try upgrading your version of angular. Everything seems ok here. @iamonuwa

stigwue commented 6 years ago

It would have been cool to know which AngularJS versions trigger this error so perhaps we can use bind('click') for v1.0.1 and .click() for perhaps v1.0.2.

I've just had this error triggered by v1.6.3.