Adyen / adyen-cse-web

[DEPRECATED] Client-side encryption on JavaScript
MIT License
15 stars 39 forks source link

Typo causing google closure compiler to fail #46

Closed lennartp closed 7 years ago

lennartp commented 7 years ago

The following line in adyen.encrypt.js seems to contain a typo. It (probably unintentionally) uses the bitwise OR operator here on line 1131:

handlers.cvcHandler({target:elementsByName.cvc, originalEvent: ev, type : (ev|{}).type, isInitializing : (ev||{}).isInitializing})

(ev|{}).type should be (ev||{}).type - just like the other occurrence a couple characters to the right.

It doesn't produce errors during runtime, but the result of (ev|{}).type will always be undefined, not matter the value of ev.