Client additionally states the error pops up w/ IE 10 on Windows 8 and
when using Visual Studio.

I can't recreate w/ IE 10 on Win 7. Go figure.

Tom.

On 08/23/2013 01:10 PM, Tom Poage wrote:
> Afternoon,
> 
> The following snippet from cas.js in CAS 3.5.2 (and 4.0 RC1)
> triggers/displays an error (pop-up) in some browsers (saw this morning
> in IE 8) which, in effect, says "window.console" is null:
> 
>>     if (!window.console || window.console == {}) {
>>         window.console.log = function() {};
>>     }
> 
> I don't know offhand what this intends to do, though guess it either
> tries to 'step on' (disable) console logging by setting to an empty
> function, or ensure window.console.log is a resolvable, albeit empty,
> function when not defined.
> 
> I also see that older versions of IE (!) will throw errors if
> console.log is referenced and developer tools are not currently open
> (*). The offered workaround is:
> 
>  if(!window.console){ window.console = {log: function(){} }; }
> 
> a little different than the above snippet.
> 
> Thanks for any advice.
> Tom.
> --
> 
> *
> http://stackoverflow.com/questions/4743730/what-is-console-log-and-how-do-i-use-it
> 


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to