From c79ab84fdf3e7b9a23211c2f8cafe9ec7a389689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 1 Oct 2014 09:42:42 +0200 Subject: [PATCH] More fixes related to shared crosshair #880 --- src/app/directives/grafanaGraph.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/directives/grafanaGraph.js b/src/app/directives/grafanaGraph.js index 8d8e288d3f9..685ac7e0b83 100755 --- a/src/app/directives/grafanaGraph.js +++ b/src/app/directives/grafanaGraph.js @@ -28,7 +28,6 @@ function (angular, $, kbn, moment, _, graphTooltip) { } if(dashboard.sharedCrosshair) { - console.log("setCrosshair"); var plot = elem.data().plot; if (plot) { plot.setCrosshair({ x: info.pos.x, y: info.pos.y }); @@ -38,7 +37,9 @@ function (angular, $, kbn, moment, _, graphTooltip) { scope.onAppEvent('clearCrosshair', function() { var plot = elem.data().plot; - plot.clearCrosshair(); + if (plot) { + plot.clearCrosshair(); + } }); scope.$on('refresh', function() {