From: Mike Taylor Date: Tue, 12 May 2015 08:50:30 +0000 (+0100) Subject: Use an unchanging base. Still doesn't help. X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=1666ef6e268923a77569db56c3b3d2412e8df312;p=mkws-moved-to-github.git Use an unchanging base. Still doesn't help. --- diff --git a/src/mkws-widget-facets.js b/src/mkws-widget-facets.js index 9ad4c57..ffe344b 100644 --- a/src/mkws-widget-facets.js +++ b/src/mkws-widget-facets.js @@ -45,8 +45,9 @@ mkws.registerWidgetType('facet', function() { data = data[name]; var terms = []; var teamName = team.name(); + var base = team.filters(); for (var i = 0; i < data.length && i < max; i++) { - var fs = $.extend(true, {}, team.filters()); + var fs = $.extend(true, {}, base); //team.warn("fs = " + mkws.$.toJSON(fs)); //team.warn("team.filters = " + mkws.$.toJSON(team.filters())); if (!pzIndex) {