From 7bacf6035b0c696b54d4d16075942ecea65c2d38 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 10 Oct 2013 16:50:31 +0100 Subject: [PATCH] Wolfram's neat tweak to ameliorate "debug" name clashes. --- tools/htdocs/mkws.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) { -- 1.7.10.4