From: Mike Taylor Date: Wed, 19 Mar 2014 17:02:48 +0000 (+0000) Subject: Team-specific debug function now visible as team.debug. X-Git-Tag: 1.0.0~1299 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=d253f36a0c449b2d933105421485daf6617022f6 Team-specific debug function now visible as team.debug. This is used in the widget constructor. --- 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");