Quellcode durchsuchen

Sanity-check decaffeinate app.views.StaticPage

Simon Legner vor 1 Jahr
Ursprung
Commit
63ff7311c2
1 geänderte Dateien mit 7 neuen und 10 gelöschten Zeilen
  1. 7 10
      assets/javascripts/views/content/static_page.js

+ 7 - 10
assets/javascripts/views/content/static_page.js

@@ -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();