From 7fb5c64880a4b0ce335a2a0381afbbad434e64dd Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 12 May 2015 11:29:26 +0100 Subject: [PATCH] Facet widget now uses filterSet.deepCopy() instead of flawed $.extend() invocation. Finally solves the evil aliasing problem that flummoxed me last night. Thanks to Jakub for fruitful discussion. --- src/mkws-widget-facets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkws-widget-facets.js b/src/mkws-widget-facets.js index 8a7ab37..4438c39 100644 --- a/src/mkws-widget-facets.js +++ b/src/mkws-widget-facets.js @@ -45,7 +45,7 @@ mkws.registerWidgetType('facet', function() { data = data[name]; var terms = []; for (var i = 0; i < data.length && i < max; i++) { - var fs = $.extend(true, {}, team.filters()); + var fs = team.filters().deepCopy(); //team.warn("fs = " + mkws.$.toJSON(fs)); //team.warn("team.filters = " + mkws.$.toJSON(team.filters())); if (!pzIndex) { -- 1.7.10.4