Local function log() is now a simple alias to team.log(), rather than invoking it.
[mkws-moved-to-github.git] / src / mkws-widget.js
index 3712764..47fb6fd 100644 (file)
@@ -13,9 +13,7 @@ mkws.makeWidget = function($, team, type, node) {
     config: mkws.objectInheritingFrom(team.config)
   };
 
-  function log(s) {
-    team.log(s);
-  }
+  var log = team.log;
   that.log = log;
 
   that.toString = function() {
@@ -57,7 +55,7 @@ mkws.makeWidget = function($, team, type, node) {
     }
 
     var s = [];
-    s.push('<div class="mkws', type, ' mkwsTeam_', attrs._team, '"');
+    s.push('<div class="mkws', type, ' mkws-team-', attrs._team, '"');
     for (var name in attrs) {    
       if (name !== '_team')
         s.push(' ', name, '="', attrs[name], '"');