Просмотр исходного кода

style: remove unused function

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
rugk 3 месяцев назад
Родитель
Сommit
401a09f288
1 измененных файлов с 0 добавлено и 7 удалено
  1. 0 7
      js/test/TopNav.js

+ 0 - 7
js/test/TopNav.js

@@ -8,13 +8,6 @@ function query(selector) {
     return document.querySelector(selector);
     return document.querySelector(selector);
 }
 }
 
 
-function triggerClick(element) {
-    if (!element) {
-        return;
-    }
-    element.dispatchEvent(new window.Event('click', { bubbles: true, cancelable: true }));
-}
-
 describe('TopNav', function () {
 describe('TopNav', function () {
     describe('showViewButtons & hideViewButtons', function () {
     describe('showViewButtons & hideViewButtons', function () {
         before(function () {
         before(function () {