From 9424d5ba65c5fa23c880e309cdc59e1580d32d18 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Tue, 4 Jun 2024 19:27:43 -0400 Subject: [PATCH] Revert "Debugging tooltip performance" This reverts commit e38c4583f992f7c273d1b1d8f949e913be465c46. --- js/component/chart.js | 5 ----- js/component/chart/runtime_sensor_detail_temperature.js | 2 -- 2 files changed, 7 deletions(-) diff --git a/js/component/chart.js b/js/component/chart.js index 6f3f16c..237e9e0 100644 --- a/js/component/chart.js +++ b/js/component/chart.js @@ -503,8 +503,6 @@ beestat.component.chart.prototype.get_options_series_ = function() { * @return {object} The tooltip options. */ beestat.component.chart.prototype.get_options_tooltip_ = function() { - // if(beestat.user.get().user_id === 1) return null; - return { 'shared': true, 'useHTML': true, @@ -533,7 +531,6 @@ beestat.component.chart.prototype.get_options_tooltip_formatter_ = function() { * @return {Function} The tooltip positioner. */ beestat.component.chart.prototype.get_options_tooltip_positioner_ = function() { - if(beestat.user.get().user_id === 1) return null; var self = this; return function(tooltip_width, tooltip_height, point) { return { @@ -756,8 +753,6 @@ beestat.component.chart.prototype.sync_extremes = function(source_chart) { * @param {beestat.component.chart} source_chart The source chart. */ beestat.component.chart.prototype.sync_crosshair = function(source_chart) { - if(beestat.user.get().user_id === 1) return null; - var self = this; [ diff --git a/js/component/chart/runtime_sensor_detail_temperature.js b/js/component/chart/runtime_sensor_detail_temperature.js index 314b60b..a39bc61 100644 --- a/js/component/chart/runtime_sensor_detail_temperature.js +++ b/js/component/chart/runtime_sensor_detail_temperature.js @@ -134,8 +134,6 @@ beestat.component.chart.runtime_sensor_detail_temperature.prototype.get_options_ * @return {Function} The tooltip formatter. */ beestat.component.chart.runtime_sensor_detail_temperature.prototype.get_options_tooltip_formatter_ = function() { - if(beestat.user.get().user_id === 1) return null; - var self = this; return function() {