Sanity-check decaffeinate app.views.StaticPage

pull/1441/head
Simon Legner 1 year ago
parent 7fa81665df
commit 63ff7311c2

@ -7,16 +7,14 @@
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/
app.views.StaticPage = class StaticPage extends app.View {
static initClass() {
this.className = "_static";
static className = "_static";
this.titles = {
about: "About",
news: "News",
help: "User Guide",
notFound: "404",
};
}
static titles = {
about: "About",
news: "News",
help: "User Guide",
notFound: "404",
};
deactivate() {
if (super.deactivate(...arguments)) {
@ -38,4 +36,3 @@ app.views.StaticPage = class StaticPage extends app.View {
this.render(context.page || "notFound");
}
};
app.views.StaticPage.initClass();

Loading…
Cancel
Save