On 10/23/06, Hacking Bear <[EMAIL PROTECTED]> wrote: > > I know it is defined for Opera but it is not dfined for IE!
And not in Safari, Firefox or any other browser. > can easily fix it Fix what? > if(/MSIE/.test(navigator.userAgent) && !window.opera && > (!this.element.currentStyle.hasLayout)) When window.opera is undefined, !window.opera evaluates to true. A script engine has no problem referencing an undefined variable, it just yields "undefined", a proper native JS type. When window.opera is undefined, accessing window.opera will not throw an error, but accessing window.opera.version would. Use the MS script debugger to find out what the real problem is. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
