omarshammas / jquery.formance

A jQuery library for formatting and validating form fields, based on Stripe's jQuery.payment library.
omarshammas.github.io/formancejs
Other
632 stars 105 forks source link

Error thrown on pasting into fields #9

Open resistorsoftware opened 10 years ago

resistorsoftware commented 10 years ago

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' 
omarshammas commented 10 years ago

thanks, I will look into it.

resistorsoftware commented 10 years ago

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

prpetten commented 10 years ago

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

bahbahtoonday commented 10 years ago

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'

resistorsoftware commented 10 years ago

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

omarshammas commented 10 years ago

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!