From d253f36a0c449b2d933105421485daf6617022f6 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 19 Mar 2014 17:02:48 +0000 Subject: [PATCH] Team-specific debug function now visible as team.debug. This is used in the widget constructor. --- tools/htdocs/mkws.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index baf954f..b3cd04a 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -172,7 +172,7 @@ function widget($, team, type, node) { // ### Handle other types here } - mkws.debug("made widget(team=" + team.name() + ", type=" + type + ", node=" + node); + team.debug("made widget(type=" + type + ", node=" + node); return that; @@ -414,6 +414,7 @@ function team($, teamName) { mkws.debug(m_teamName + ": " + timestamp + s); } + that.debug = debug; debug("start running MKWS"); -- 1.7.10.4