From 3236c3813f5da23cfb39605574399a6a2d856461 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 20 May 2014 17:21:37 +0100 Subject: [PATCH] The subwidget function now treats the "_team" override specially, allowing it to override the team that the subwidget is a member of. --- src/mkws-widget.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mkws-widget.js b/src/mkws-widget.js index c92789a..8be0064 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -32,7 +32,7 @@ function widget($, team, type, node) { // also provided, then these are used when the parent widget // provides no values. that.subwidget = function(type, overrides, defaults) { - var attrs = {}; + var attrs = { _team: team.name() }; // Copy locally-set properties from the parent widget for (var name in this.config) { @@ -57,9 +57,10 @@ function widget($, team, type, node) { } var s = []; - s.push('
'); return s.join(''); -- 1.7.10.4