History

Sanity-check decaffeinate app.views.RootPage

Simon Legner committed 2 years ago

Commit 46d8d851 parent 1efb7941 file · +1 −12Browse files

Unified · Split

assets/javascripts/views/content/root_page.js+1−12
@@ -1,15 +1,5 @@
1−// TODO: This file was created by bulk-decaffeinate.
2−// Sanity-check the conversion and remove this comment.
3−/*
4− * decaffeinate suggestions:
5− * DS102: Remove unnecessary code created because of implicit returns
6− * DS206: Consider reworking classes to avoid initClass
7− * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
8− */
91 app.views.RootPage = class RootPage extends app.View {
10− static initClass() {
11− this.events = { click: "onClick" };
12− }
2+ static events = { click: "onClick" };
133
144 init() {
155 if (!this.isHidden()) {
@@ -54,4 +44,3 @@ app.views.RootPage = class RootPage extends app.View { · 38 unmodified lines
5444 }
5545 }
5646 };
57−app.views.RootPage.initClass();