From: Jörn Zaefferer Date: Tue, 3 Oct 2006 10:54:55 +0000 (+0000) Subject: I had to put the check for 'typeof console != "undefined"' back in, otherwise IE... X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=374dbbe80a3df30f52505a9c3ebd31efef711ec0 I had to put the check for 'typeof console != "undefined"' back in, otherwise IE complains about console not being defined. --- diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index 0b6e08d..ea73127 100644 --- a/build/test/data/testrunner.js +++ b/build/test/data/testrunner.js @@ -55,7 +55,7 @@ function test(name, callback) { try { callback(); } catch(e) { - if( console && console.error ) { + if( typeof console != "undefined" && console.error && console.warn ) { console.error("Test " + name + " died, exception and test follows"); console.error(e); console.warn(callback.toString());