History

Sanity-check decaffeinate app.views.RootPage

Simon Legner committed 2 years ago

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

Showing the changes to assets/javascripts (1 of 1 file). Show all

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 */
9app.views.RootPage = class RootPage extends app.View {1app.views.RootPage = class RootPage extends app.View {
10 static initClass() {2 static events = { click: "onClick" };
11 this.events = { click: "onClick" };
12 }
13 3
14 init() {4 init() {
15 if (!this.isHidden()) {5 if (!this.isHidden()) {
@@ -54,4 +44,3 @@ app.views.RootPage = class RootPage extends app.View { · 38 unmodified lines
54 }44 }
55 }45 }
56};46};
57app.views.RootPage.initClass();