From 9f7a3c133f9866cceb845149820f476b5caaa69e Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 12 May 2015 08:35:46 +0100 Subject: [PATCH] Simplify to a version that still doesn't work, but in the same way. --- src/mkws-widget-facets.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mkws-widget-facets.js b/src/mkws-widget-facets.js index 5c720bd..9ad4c57 100644 --- a/src/mkws-widget-facets.js +++ b/src/mkws-widget-facets.js @@ -45,10 +45,8 @@ mkws.registerWidgetType('facet', function() { data = data[name]; var terms = []; var teamName = team.name(); - var base = team.filters(); - var fs; for (var i = 0; i < data.length && i < max; i++) { - fs = $.extend(base, [], false); + var fs = $.extend(true, {}, team.filters()); //team.warn("fs = " + mkws.$.toJSON(fs)); //team.warn("team.filters = " + mkws.$.toJSON(team.filters())); if (!pzIndex) { -- 1.7.10.4