From 7880f5965cc4c7d388b4955ad38a37722d926c60 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Sat, 28 Jan 2023 16:47:05 +0100 Subject: [PATCH] refactoring --- docs/batchCodeTable.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/batchCodeTable.js b/docs/batchCodeTable.js index 6f460e2c4c7..d9c43825746 100644 --- a/docs/batchCodeTable.js +++ b/docs/batchCodeTable.js @@ -120,7 +120,6 @@ class BatchCodeTableInitializer { } #initializeHistogramView() { - const histogramView = new HistogramView(); const thisClassInstance = this; $(`#${this.#batchCodeTableElement[0].id} tbody`).on( 'click', @@ -135,7 +134,7 @@ class BatchCodeTableInitializer { const uiContainer = document.createElement("div"); row.child(uiContainer).show(); tr.addClass('shown'); - histogramView.show('FD6840', uiContainer); + new HistogramView().show('FD6840', uiContainer); } }); }