team() function is now mkws.makeTeam().
authorMike Taylor <mike@indexdata.com>
Mon, 6 Oct 2014 16:12:36 +0000 (17:12 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 6 Oct 2014 16:12:36 +0000 (17:12 +0100)
We don't want to put anything but "mkws" in the top-level namespace.
Also the new name is more explicit about what's happening.

src/mkws-core.js

index d88e751..6126e32 100644 (file)
@@ -461,7 +461,7 @@ mkws.log("Using window.name '" + window.name + "'");
       handleNodeWithTeam(this, function(tname, type) {
         var myTeam = mkws.teams[tname];
         if (!myTeam) {
-          myTeam = mkws.teams[tname] = team($, tname);
+          myTeam = mkws.teams[tname] = mkws.makeTeam($, tname);
           log("made MKWS team '" + tname + "'");
         }