From: Mike Taylor Date: Wed, 22 Oct 2014 16:14:24 +0000 (+0100) Subject: Use team.log() for two team-specific log messages. X-Git-Tag: 1.0.0~138^2~3 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=b192cd12d336f8229b99d06b7667114d6098f1e5;p=mkws-moved-to-github.git Use team.log() for two team-specific log messages. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index 56e7f28..32dfcc7 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -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);