Skip to content

IE Counter Initialisation Issue #4

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

Closed
ardy15jan opened this issue Dec 20, 2012 · 1 comment
Closed

IE Counter Initialisation Issue #4

ardy15jan opened this issue Dec 20, 2012 · 1 comment

Comments

@ardy15jan
Copy link

Tested in IE8 on Windows 7 and Windows XP.

When first initialising the counter for each format, the digit parameter in the $.each() call on line 180 gets rendered as undefined. This leads to the counter displaying zeros for each digit group until the first refresh() call is made on that group.

@ardy15jan
Copy link
Author

The fix that I've found for this is replacing the $.each() call on lines 180-182 with a simple for loop:

for(var i=0; i < digits.length; i++) {
epart.append($('').addClass('digit digit' + digits.charAt(i)).text(digits.charAt(i)));
}

IE seems to have problems with $.each() calls being made on Strings: http://bugs.jquery.com/ticket/4180

@pricco pricco closed this as completed in 955e36f Dec 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants