From bbf2ccdbeb4f62872901000b23a1e3bab7070115 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 26 Mar 2014 11:21:39 +0000 Subject: [PATCH] mkws.log now assigned from existing function rather than vice versa. --- src/mkws-core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mkws-core.js b/src/mkws-core.js index 0a175e4..7f5b0f5 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -84,7 +84,7 @@ if (mkws_config == null || typeof mkws_config != 'object') { // wrapper to call team() after page load (function (j) { - mkws.log = function (string) { + function log(string) { if (!mkws.log_level) return; @@ -100,7 +100,7 @@ if (mkws_config == null || typeof mkws_config != 'object') { } console.log(string); } - var log = mkws.log; + mkws.log = log; function handleNodeWithTeam(node, callback) { -- 1.7.10.4