From: Mike Taylor Date: Thu, 10 Apr 2014 11:35:42 +0000 (+0100) Subject: Tweak X-Git-Tag: 1.0.0~973^2~3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=f5d8502269398a3d61096fc9fadf73147a150144;p=mkws-moved-to-github.git Tweak --- diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index 36cfc1d..e29ede0 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -19,7 +19,6 @@ mkws.registerWidgetType('Facet', function() { } var that = this; - var teamName = that.team.name(); var name = that.config.facet; var ref = facetConfig[name] || alert("no facet definition for '" + name + "'"); var caption = ref[0]; @@ -29,6 +28,7 @@ mkws.registerWidgetType('Facet', function() { that.team.queue("termlists").subscribe(function(data) { data = data[name]; + var teamName = that.team.name(); var acc = []; acc.push('
' + mkws.M(caption) + '
'); for (var i = 0; i < data.length && i < max; i++) {