I pull my hair on top of IE9 / 8; I am trying to use mOxie , but it appears as undefined , although it is very clearly defined.
when I write mOxie to the console from another file, it writes it fine in Chrome / IE10 +, but runs the same script in IE9 / 8 undefined logs.
However, in IE9 / 8, when I type 'mOxie' in the console directly, it correctly registers the object.
http://jsfiddle.net/vxyayxy8/ - Run in IE10 mode and you will see that it loads the object. Run in IE9 mode and you will see that it registers undefined
Why in IE9 / 8 when registering from a file (which is included after mOxie) is it undefined , but defined in IE9 / 8 when using the console directly?
Keep in mind that it is defined in Chrome and IE10 +.
To test the theory of my answer below in IE11, but in IE9 document mode, console.log({}) - I get undefined , which corresponds to the question and answer. Can you reproduce this?
source share