google-code-export / jquery-i18n-properties

Automatically exported from code.google.com/p/jquery-i18n-properties
1 stars 0 forks source link

Getting JS error 'undefined' is null or not an object in IE8 #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Include jquery.i18n.properties-1.0.9.js in the source code
2.
3.

What is the expected output? What do you see instead?

Getting JS error while hitting the page in IE 8, error details as below:

Webpage error details

Message: 'undefined' is null or not an object
Line: 258
Char: 4
Code: 0
URI: http://localhost:8080/test/jquery.i18n.properties-1.0.9.js

What version of the product are you using? On what operating system?

jquery.i18n.properties-1.0.9.js
OS - Windows 7 32-bit

Please provide any additional information below.

Original issue reported on code.google.com by geedhar...@gmail.com on 28 Aug 2013 at 4:48

Attachments:

GoogleCodeExporter commented 9 years ago
I've 'solved' this temporarily - for my case - by wrapping the `for` loop, 
inside the function `toUnicode()`, in an if statement like this:
`if(text && text.length>0){
      for (var i=0;i<text.length;i++) {
          if ((text.charAt(i) == '&') && (text.charAt(i+1) == '#')) {
              result = result + String.fromCharCode(parseInt(text.substring(i+2,i+6)));
              i+=6;
          } else
              result = result + text.charAt(i);
      }
    }`

That solved it for me

Original comment by m...@markdejong.com on 9 Jan 2014 at 10:59