History

Sanity-check decaffeinate app.views.StaticPage

Simon Legner committed 2 years ago

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

Unified · Split

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