jquery.formance icon indicating copy to clipboard operation
jquery.formance copied to clipboard

Error thrown on pasting into fields

Open resistorsoftware opened this issue 11 years ago • 6 comments

I am testing the credit card validation. When I paste into the demo provided, the code throws the error

Uncaught TypeError: Object #<Object> has no method 'formatCardNumber' 

resistorsoftware avatar Jan 24 '14 19:01 resistorsoftware

thanks, I will look into it.

omarshammas avatar Jan 24 '14 20:01 omarshammas

Just so you know... formance_js_by_omar_shammas_and_swift-braun_-_welcome

resistorsoftware avatar Jan 24 '14 20:01 resistorsoftware

I also noticed that pasting strings with more than 10 characters into phone number field causes an error:

Uncaught TypeError: Cannot read property '0' of null jquery.formance.min.js:1 reFormatPhoneNumber

prpetten avatar Feb 05 '14 23:02 prpetten

In addition to what @prpetten found, if you type any characters after 10 characters you also get the 'Uncaught TypeError: Cannot read property '0' of null jquery.formance.min.js:1'

bahbahtoonday avatar Mar 19 '14 17:03 bahbahtoonday

Bump.. is this a totally given up on dead project?

resistorsoftware avatar Mar 28 '14 18:03 resistorsoftware

No not given up. This issue is fixed in the revamp branch https://github.com/omarshammas/jquery.formance/tree/revamp but there are still a few failing tests that need to be resolved before it will merged in to master.

I'm just really busy right now, if you'd like to lend a hand pull requests are welcome!

omarshammas avatar Mar 30 '14 19:03 omarshammas