From 9792bd7b08ed21ed8dc7c2de1a1e89684e24aabf Mon Sep 17 00:00:00 2001 From: benrubson Date: Sun, 16 Oct 2016 00:46:56 +0200 Subject: [PATCH] Typo --- public/app/plugins/panel/graph/graph_tooltip.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/public/app/plugins/panel/graph/graph_tooltip.js b/public/app/plugins/panel/graph/graph_tooltip.js index 6477a4a46a9..f777ba15402 100644 --- a/public/app/plugins/panel/graph/graph_tooltip.js +++ b/public/app/plugins/panel/graph/graph_tooltip.js @@ -2,7 +2,7 @@ define([ 'jquery', 'lodash' ], -function ($, _) { +function ($) { 'use strict'; function GraphTooltip(elem, dashboard, scope, getSeriesFn) { @@ -17,7 +17,8 @@ function ($, _) { var initial = last*ps; var len = series.datapoints.points.length; for (var j = initial; j < len; j += ps) { - if ((series.datapoints.points[initial] != null && series.datapoints.points[j] == null && ! series.lines.steps) || series.datapoints.points[j] > posX) { + if ((series.datapoints.points[initial] != null && series.datapoints.points[j] == null && ! series.lines.steps) + || series.datapoints.points[j] > posX) { return Math.max(j - ps, 0)/ps; } } @@ -171,7 +172,9 @@ function ($, _) { continue; } - if (! distance || (hoverInfo.distance >=0 && (hoverInfo.distance < distance || distance < 0)) || (hoverInfo.distance < 0 && hoverInfo.distance > distance)) { + if (! distance + || (hoverInfo.distance >=0 && (hoverInfo.distance < distance || distance < 0)) + || (hoverInfo.distance < 0 && hoverInfo.distance > distance)) { distance = hoverInfo.distance; time = hoverInfo.time; }