From: Mike Taylor Date: Tue, 20 May 2014 16:21:37 +0000 (+0100) Subject: The subwidget function now treats the "_team" override specially, X-Git-Tag: 1.0.0~632 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=3236c3813f5da23cfb39605574399a6a2d856461 The subwidget function now treats the "_team" override specially, allowing it to override the team that the subwidget is a member of. --- 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('');