History

Sanity-check decaffeinate app.views.StaticPage

Simon Legner committed 2 years ago

Commit 63ff7311 parent 7fa81661 file · +7 −10Browse files

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

Unified · Split

assets/javascripts/views/content/static_page.js+7−10
@@ -7,16 +7,14 @@ · 6 unmodified lines
77 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
88 */
99 app.views.StaticPage = class StaticPage extends app.View {
10− static initClass() {
11− this.className = "_static";
10+ static className = "_static";
1211
13− this.titles = {
14− about: "About",
15− news: "News",
16− help: "User Guide",
17− notFound: "404",
18− };
19− }
12+ static titles = {
13+ about: "About",
14+ news: "News",
15+ help: "User Guide",
16+ notFound: "404",
17+ };
2018
2119 deactivate() {
2220 if (super.deactivate(...arguments)) {
@@ -38,4 +36,3 @@ app.views.StaticPage = class StaticPage extends app.View { · 15 unmodified lines
3836 this.render(context.page || "notFound");
3937 }
4038 };
41−app.views.StaticPage.initClass();