Typo in error message.
[mkws-moved-to-github.git] / src / mkws-core.js
index 0a175e4..b11f53f 100644 (file)
@@ -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);
     }
@@ -272,7 +275,7 @@ if (mkws_config == null || typeof mkws_config != 'object') {
            }
            var status = $(data).find("status");
            if (status.text() != "OK") {
-               alert("service proxy auth repsonse status: " + status.text() + ", give up!");
+               alert("service proxy auth response status: " + status.text() + ", give up!");
                return;
            }