I have two js files. I am using namespaces within my js files. Here is what first JS files looks like:
(function(common, undefined) {
"use strict";
common.FunctionOne = function(){
//do something
};
}(window.common = window.common || {}));
The second js file looks like this:
(function(processing, undefined) {
"use strict";
processing.FunctionTwo = function(){
common.FunctionOne()
};
}(window.processing = window.processing || {}));
On my HTML page I have included the first js first and second one later (through tags). I am getting an error "Unable to get property 'FunctionOne' of undefined or null reference" in IE8 only. It works fine for other browsers.
I am not sure, but it looks like some namespace issue. Looks like IE8 is not recognizing the function that has been defined in the first js file.
Any thoughts?
Thanks.