From f35d784548fcd41080821c07727116a059924afb Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Sun, 8 Apr 2018 10:57:07 -0400 Subject: [PATCH] simplify multi-focus reset fixes part of #1401 --- web/examples/multi-focus.html | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/web/examples/multi-focus.html b/web/examples/multi-focus.html index 58343a931..35c5c923b 100644 --- a/web/examples/multi-focus.html +++ b/web/examples/multi-focus.html @@ -88,13 +88,7 @@ } this._focusCharts = chartlist; // only needed to support the getter above this.on('filtered', function (range_chart) { - if (!range_chart.filter()) { - dc.events.trigger(function () { - chartlist.forEach(function(focus_chart) { - focus_chart.x().domain(focus_chart.xOriginalDomain()); - }); - }); - } else chartlist.forEach(function(focus_chart) { + chartlist.forEach(function(focus_chart) { if (!rangesEqual(range_chart.filter(), focus_chart.filter())) { dc.events.trigger(function () { focus_chart.focus(range_chart.filter());