I am getting the following error in IE9 when in IE7 mode. Using a small counting script:
SCRIPT1028: Expected identifier, string or number
Code
$.fn.countTo.defaults = {
from: 0, // the number the element should start at
to: 100, // the number the element should end at
speed: 1000, // how long it should take to count between the target numbers
refreshInterval: 100, // how often the element should be updated
decimals: 2, // the number of decimal places to show
onUpdate: null, // callback method for every time the element is updated,
onComplete: null, // callback method for when the element finishes updating
};
Line 185 is the last curly bracket and semi colon
We need this to work in IE7 but this error is breaking the script.
Remove the trailing comma after
onComplete.