Undefined is not defined in IE7
I am using a JavaScript library (History.js) where the code is wrapped around this anonymous function:

     (function(window,undefined){
         //...
     });

It works well in all browsers until I switch to IE7 compatibility mode. I drilled down to this "undefined" variable which is causing a script not being functional. In other words, IE7 seems to stop the script when it sees this undefined keyword.

I understand that this variable is used to create an undefined object but since it is really not defined anywhere, IE7 and possibly earlier do not work.

What's the workaround? has anybody come across the same issue?
Undefined is not defined in IE7
===

I am using a JavaScript library (History.js) where the code is wrapped around this anonymous function:

     (function(window,undefined){
         //...
     });

It works well in all browsers until I switch to IE7 compatibility mode. I drilled down to this "undefined" variable which is causing a script not being functional. In other words, IE7 seems to stop the script when it sees this undefined keyword.

I understand that this variable is used to create an undefined object but since it is really not defined anywhere, IE7 and possibly earlier do not work.

What's the workaround? has anybody come across the same issue?