From: Wolfram Schneider Date: Fri, 24 Jan 2014 13:49:20 +0000 (+0000) Subject: fix broken debug() function for IE (again!!) X-Git-Tag: 1.0.0~1609^2 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=2ffcbeb3a1a3e8a4ac8c03c81973a182ca03e173 fix broken debug() function for IE (again!!) --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 2a6d7ba..1f114f8 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -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);