Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE8 - control not working #18

Closed
ptijul opened this issue Aug 8, 2014 · 1 comment
Closed

IE8 - control not working #18

ptijul opened this issue Aug 8, 2014 · 1 comment

Comments

@ptijul
Copy link

ptijul commented Aug 8, 2014

Hello,

First of all, thanks for your control. It's a great control and easy to use.
However, I've got a javascript error under IE8 (I know it's an old browser but it's still used by our clients) located in the document.ready:

"Line: 528
Error: Object doesn't support this property or method."

In fact, Object.keys is undefined as shown by the debugger.

Instead of : var $input = $('input.file[type=file]'), count = Object.keys($input).length;
Proposition: var $input = $('input.file[type=file]'), count = Object.keys ? Object.keys($input).length : 1;

This avoid crashing and let the control beeing displayed.
Note. This issue is still valid with newest version 2.1.1.

Thanks.
Julien

@kartik-v
Copy link
Owner

kartik-v commented Aug 8, 2014

Have provided a different fix. You can check and let know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants