allowing it to override the team that the subwidget is a member of.
// also provided, then these are used when the parent widget
// provides no values.
that.subwidget = function(type, overrides, defaults) {
// also provided, then these are used when the parent widget
// provides no values.
that.subwidget = function(type, overrides, defaults) {
+ var attrs = { _team: team.name() };
// Copy locally-set properties from the parent widget
for (var name in this.config) {
// Copy locally-set properties from the parent widget
for (var name in this.config) {
- s.push('<div class="mkws', type, ' mkwsTeam_', team.name(), '"');
+ s.push('<div class="mkws', type, ' mkwsTeam_', attrs._team, '"');
for (var name in attrs) {
for (var name in attrs) {
- s.push(' ', name, '="', attrs[name], '"');
+ if (name !== '_team')
+ s.push(' ', name, '="', attrs[name], '"');
}
s.push('></div>');
return s.join('');
}
s.push('></div>');
return s.join('');