From: Mike Taylor Date: Wed, 26 Mar 2014 16:55:20 +0000 (+0000) Subject: Override toString method for team objects. X-Git-Tag: 1.0.0~1185 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=e80aed69e023e9522c4a2ce59feb0bfed301810f;p=mkws-moved-to-github.git Override toString method for team objects. --- diff --git a/src/mkws-team.js b/src/mkws-team.js index ccc7749..e14bd27 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -28,6 +28,7 @@ function team($, teamName) { var m_paz; // will be initialised below var m_template = {}; + that.toString = function() { return '[Team ' + teamName + ']'; } // Accessor methods for individual widgets: readers that.name = function() { return m_teamName; }