0

I am working on an application which was supposed to be compatible with modern browsers but now we have a requirement that it should support older browsers like IE8, IE9..

I have followed namespace pattern while developing an app. Like the followings..

var myApp = myApp || {};

myApp.Globals = {}

I have referred to Addy Osmani's blog for the same..

It works well on IE10+ but for IE8 and IE9 the variables are undefined.

e.g. if I console log these namespaces it returns undefined with this error :

myApp.Globals is null or not an object

Is there any way to fix them in IE8 and IE9?

Rahul Patil
  • 5,656
  • 6
  • 37
  • 65

0 Answers0