From 6a000bc8cc5270b4ed4d5cef98cebe95de80e579 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 25 Jun 2013 12:26:58 +0000 Subject: [PATCH] IE8 quirks: improve check for missing console.log object --- experiments/spclient/mkws.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 1.7.10.4