Override toString method for team objects.
authorMike Taylor <mike@indexdata.com>
Wed, 26 Mar 2014 16:55:20 +0000 (16:55 +0000)
committerMike Taylor <mike@indexdata.com>
Wed, 26 Mar 2014 16:55:20 +0000 (16:55 +0000)
src/mkws-team.js

index ccc7749..e14bd27 100644 (file)
@@ -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; }