We have got an open and pending pull for this issue here: https://github.com/Jasig/cas/pull/296
I had suggested previously that perhaps, switching to better JS debugging library might be more relevant and error-proof: http://benalman.com/projects/javascript-debug-console-log/ > -----Original Message----- > From: Tom Poage [mailto:[email protected]] > Sent: Friday, August 23, 2013 2:06 PM > To: [email protected] > Subject: Re: [cas-user] cas.js question > > 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 -- 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
