X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-core.js;h=da57e9486a93c268f7ee9fd421e5dca674535b2b;hb=b9ec634af85ea55b6241d4ffe1c23189a2840f26;hp=0a175e45a7aafe0eab55b228be606d311169b662;hpb=2893e2e505c2b6d6e53afb2e866c44638ce9f0b1;p=mkws-moved-to-github.git diff --git a/src/mkws-core.js b/src/mkws-core.js index 0a175e4..da57e94 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) { @@ -161,6 +161,9 @@ if (mkws_config == null || typeof mkws_config != 'object') { }; + // The following functions are dispatchers for team methods that + // are called from the UI using a te3am-name rather than implicit + // context. mkws.switchView = function(tname, view) { mkws.teams[tname].switchView(view); }