From b856be587b64d521f8de201df2c6054d72f2bc3a Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Sat, 11 May 2013 01:12:53 +0900 Subject: [PATCH] Fix focus --- c3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c3.js b/c3.js index 9d25a27..48c9941 100644 --- a/c3.js +++ b/c3.js @@ -1199,7 +1199,6 @@ d3.selectAll('.legend-item').filter(function(_d){ return _d !== d }) .transition().duration(100) .style('opacity', 0.3) - c3.defocus() c3.focus(d) }) .on('mouseout', function(d){ @@ -1250,6 +1249,7 @@ } c3.focus = function (target) { + c3.defocus() d3.selectAll(getTargetSelector(target)) .filter(function(d){ return hasTarget(d.id) }) .classed('focused', true)