jquery-counter
jquery-counter copied to clipboard
IE7 digits render bug
trafficstars
I've got some issues with IE7, no matter what the counter is set to, it always shows '0'. The problem starts at line 180: IE7 recognize 'digit' in 'each' loop as 'undefined'. I suppose it should be fixed like next (yet it works for me):
$.each(digits, function(i, digit) {
if (digit) { // due to bug (http://bugs.jquery.com/ticket/4180) it may not work in IE7
epart.append($('<span>').addClass('digit digit' + digit).text(digit));
} else {
var ie_digit = digits.charAt(i);
epart.append($('<span>').addClass('digit digit' + ie_digit).text(ie_digit));
}
});
Thank you for attention and your hard work.