From f465cc81e02348f11de35d97b65043f38dd4909e Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 6 Jan 2024 14:52:18 +0100 Subject: [PATCH] Sanity-check decaffeinate app.views.TypePage --- assets/javascripts/views/content/type_page.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/assets/javascripts/views/content/type_page.js b/assets/javascripts/views/content/type_page.js index 1c25e3cb..a7dbafae 100644 --- a/assets/javascripts/views/content/type_page.js +++ b/assets/javascripts/views/content/type_page.js @@ -1,15 +1,5 @@ -// TODO: This file was created by bulk-decaffeinate. -// Sanity-check the conversion and remove this comment. -/* - * decaffeinate suggestions: - * DS102: Remove unnecessary code created because of implicit returns - * DS206: Consider reworking classes to avoid initClass - * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md - */ app.views.TypePage = class TypePage extends app.View { - static initClass() { - this.className = "_page"; - } + static className = "_page"; deactivate() { if (super.deactivate(...arguments)) { @@ -32,4 +22,3 @@ app.views.TypePage = class TypePage extends app.View { this.render(context.type); } }; -app.views.TypePage.initClass();