diff --git a/assets/javascripts/views/content/root_page.js b/assets/javascripts/views/content/root_page.js index a4956e34..26bfa0b1 100644 --- a/assets/javascripts/views/content/root_page.js +++ b/assets/javascripts/views/content/root_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.RootPage = class RootPage extends app.View { - static initClass() { - this.events = { click: "onClick" }; - } + static events = { click: "onClick" }; init() { if (!this.isHidden()) { @@ -54,4 +44,3 @@ app.views.RootPage = class RootPage extends app.View { } } }; -app.views.RootPage.initClass();