IE8 quirks: improve check for missing console.log object
authorWolfram Schneider <wosch@indexdata.dk>
Tue, 25 Jun 2013 12:26:58 +0000 (12:26 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Tue, 25 Jun 2013 12:26:58 +0000 (12:26 +0000)
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;
     }