From: Mike Taylor Date: Thu, 10 Oct 2013 15:50:31 +0000 (+0100) Subject: Wolfram's neat tweak to ameliorate "debug" name clashes. X-Git-Tag: 0.9.1~175 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=7bacf6035b0c696b54d4d16075942ecea65c2d38;p=mkws-moved-to-github.git Wolfram's neat tweak to ameliorate "debug" name clashes. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 41d34a3..b963fc3 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -84,7 +84,7 @@ mkws.debug_time = { "start": $.now(), "last": $.now() }; -mkws.debug = function (string) { +mkws.debug_function = function (string) { if (!mkws.debug) return; @@ -104,7 +104,7 @@ mkws.debug = function (string) { } console.log(timestamp + string); } -var debug = mkws.debug; // local alias +var debug = mkws.debug_function; // local alias for (var key in mkws_config) { if (mkws_config.hasOwnProperty(key)) {