From: Wolfram Schneider Date: Tue, 25 Jun 2013 12:26:58 +0000 (+0000) Subject: IE8 quirks: improve check for missing console.log object X-Git-Tag: 0.9.1~537 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=6a000bc8cc5270b4ed4d5cef98cebe95de80e579;p=mkws-moved-to-github.git IE8 quirks: improve check for missing console.log object --- diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index cad3ede..6dde7ad 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -690,9 +690,8 @@ jQuery.extend({ function debug(string) { if (!mkws_debug) return; - - var console; // IE8 quirks - if (!console) { /* ARGH!!! */ + + if (typeof console === "undefined" || typeof console.log === "undefined") { /* ARGH!!! */ return; }