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-Tag: 1.0.2~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=374dbbe80a3df30f52505a9c3ebd31efef711ec0;p=jquery.git 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 0b6e08d1a..ea731274f 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());