IE8 quirks: improve check for missing console.log object
[mkws-moved-to-github.git] / experiments / spclient / mkws.js
index cad3ede..6dde7ad 100644 (file)
@@ -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;
     }