Use team.log() for two team-specific log messages.
authorMike Taylor <mike@indexdata.com>
Wed, 22 Oct 2014 16:14:24 +0000 (17:14 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 22 Oct 2014 16:14:24 +0000 (17:14 +0100)
src/mkws-core.js

index 56e7f28..32dfcc7 100644 (file)
@@ -501,7 +501,7 @@ mkws.log("Using window.name '" + window.name + "'");
         myTeam.addWidget(myWidget);
         var newHTML = this.innerHTML;
         if (newHTML !== oldHTML) {
-          log("widget " + tname + ":" + type + " HTML changed: reparsing");
+          myTeam.log("widget " + type + " HTML changed: reparsing");
           makeWidgetsWithin(level+1, $(this));
         }
       });
@@ -601,7 +601,7 @@ mkws.log("Using window.name '" + window.name + "'");
     for (var tName in mkws.teams) {
       var myTeam = mkws.teams[tName]
       myTeam.makePz2();
-      log("made PZ2 object for team '" + tName + "'");
+      myTeam.log("made PZ2 object");
       /*
         myTeam.visitWidgets(function(t, w) {
           log("  has widget of type '" + t + "': " + w);