fix broken debug() function for IE (again!!)
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 24 Jan 2014 13:49:20 +0000 (13:49 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 24 Jan 2014 13:49:20 +0000 (13:49 +0000)
tools/htdocs/mkws.js

index 2a6d7ba..1f114f8 100644 (file)
@@ -1394,8 +1394,12 @@ function _mkws_jquery_plugin ($) {
 // wrapper to call _make_mkws_team() after page load
 (function (j) {
     function log(s) {
-       if (console && console.log) console.log(s);
+        if (typeof console === "undefined" || typeof console.log === "undefined") { /* ARGH!!! old IE */
+            return;
+        }
+       console.log(s);
     }
+
     // enable before page load, so we could call it before mkws() runs
     _mkws_jquery_plugin(j);