Showing the changes to assets/javascripts (1 of 1 file). Show all
Unified · Split
| @@ -7,16 +7,14 @@ · 6 unmodified lines | ||
| 7 | 7 | * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md |
| 8 | 8 | */ |
| 9 | 9 | app.views.StaticPage = class StaticPage extends app.View { |
| 10 | − static initClass() { | |
| 11 | − this.className = "_static"; | |
| 10 | + static className = "_static"; | |
| 12 | 11 | |
| 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 | + }; | |
| 20 | 18 | |
| 21 | 19 | deactivate() { |
| 22 | 20 | if (super.deactivate(...arguments)) { |
| @@ -38,4 +36,3 @@ app.views.StaticPage = class StaticPage extends app.View { · 15 unmodified lines | ||
| 38 | 36 | this.render(context.page || "notFound"); |
| 39 | 37 | } |
| 40 | 38 | }; |
| 41 | −app.views.StaticPage.initClass(); | |