Closed DanieleAlessandro closed 9 years ago
I found out other similar problems with IE: even the save
function use square brackets on a string:
if (line === '' || line[0] === '#'){
Another problem is the use of the trim
method of strings. It isn't supported by IE, it should be defined.
Here you can find some information:
http://stackoverflow.com/questions/2308134/trim-in-javascript-not-working-in-ie
Updated IE compatibility issue fixes in the code.
Hi there, I used messageResource in a project and I recently found out that it doesn't work in Internet Explorer 8. I also found where the problem is: in the
init
method square bracket are used to read a character in a particular position inside a string. Old versions of IE don't support this syntax. The correct way to do that should be thecharAt
method of strings: http://www.w3schools.com/jsref/jsref_charAt.aspThe code for
init
method should be changed in this way: