From: Mike Taylor Date: Fri, 28 Feb 2014 10:31:26 +0000 (+0000) Subject: Rename variable. X-Git-Tag: 1.0.0~1384^2~8 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=5f4b0ba8b12474e57a93010ce18900ccac950825;p=mkws-moved-to-github.git Rename variable. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index bcd33db..2df7c12 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -1242,17 +1242,17 @@ function team($, teamName) { mkws.handle_node_with_team = function(node, callback) { var classes = node.className; var list = classes.split(/\s+/) - var tname, type; + var teamName, type; for (var i = 0; i < list.length; i++) { var cname = list[i]; if (cname.match(/^mkwsTeam_/)) { - tname = cname.replace(/^mkwsTeam_/, ''); + teamName = cname.replace(/^mkwsTeam_/, ''); } else if (cname.match(/^mkws/)) { type = cname.replace(/^mkws/, ''); } } - callback.call(this, tname, type); + callback.call(this, teamName, type); }