From b201fb269f9afbd76c62944220498f917229e0c2 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 6 Jan 2024 15:22:57 +0100 Subject: [PATCH] Sanity-check decaffeinate app.views.SupportTablesPage --- assets/javascripts/views/pages/support_tables.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/assets/javascripts/views/pages/support_tables.js b/assets/javascripts/views/pages/support_tables.js index bce38f27..94323b56 100644 --- a/assets/javascripts/views/pages/support_tables.js +++ b/assets/javascripts/views/pages/support_tables.js @@ -1,18 +1,9 @@ -// TODO: This file was created by bulk-decaffeinate. -// Sanity-check the conversion and remove this comment. -/* - * decaffeinate suggestions: - * DS206: Consider reworking classes to avoid initClass - * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md - */ //= require views/pages/base app.views.SupportTablesPage = class SupportTablesPage extends ( app.views.BasePage ) { - static initClass() { - this.events = { click: "onClick" }; - } + static events = { click: "onClick" }; onClick(event) { if (!event.target.classList.contains("show-all")) { @@ -27,4 +18,3 @@ app.views.SupportTablesPage = class SupportTablesPage extends ( el.classList.add("show-all"); } }; -app.views.SupportTablesPage.initClass();