From e7da30b9892410ecb8426e0b78caa74775e7d48c Mon Sep 17 00:00:00 2001 From: Masayuki Tanaka Date: Tue, 28 Jan 2014 15:52:43 +0900 Subject: [PATCH] Fix jshint --- c3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c3.js b/c3.js index 4618a5a..8cf08d5 100644 --- a/c3.js +++ b/c3.js @@ -1156,11 +1156,11 @@ // Set tooltip // todo get rid of magic numbers tooltip - .style("top", (d3.mouse(this)[1] + 15 + tHeight < getCurrentHeight() ? d3.mouse(this)[1] + 15 : d3.mouse(this)[1] - tHeight ) + "px") + .style("top", (d3.mouse(this)[1] + 15 + tHeight < getCurrentHeight() ? d3.mouse(this)[1] + 15 : d3.mouse(this)[1] - tHeight) + "px") .style("left", ((__axis_rotated ? d3.mouse(this)[0] : (x(selectedData[0].x) + 60 + tWidth < getCurrentWidth()) ? - (x(selectedData[0].x) + 60) +"px" : (x(selectedData[0].x) - tWidth + 30) + "px" + (x(selectedData[0].x) + 60) + "px" : (x(selectedData[0].x) - tWidth + 30) + "px" ))) .style("visibility", "visible");