Преглед изворни кода

Sanity-check decaffeinate app.views.RootPage

Simon Legner пре 1 година
родитељ
комит
46d8d85ee2
1 измењених фајлова са 1 додато и 12 уклоњено
  1. 1 12
      assets/javascripts/views/content/root_page.js

+ 1 - 12
assets/javascripts/views/content/root_page.js

@@ -1,15 +1,5 @@
-// TODO: This file was created by bulk-decaffeinate.
-// Sanity-check the conversion and remove this comment.
-/*
- * decaffeinate suggestions:
- * DS102: Remove unnecessary code created because of implicit returns
- * DS206: Consider reworking classes to avoid initClass
- * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
- */
 app.views.RootPage = class RootPage extends app.View {
-  static initClass() {
-    this.events = { click: "onClick" };
-  }
+  static events = { click: "onClick" };
 
   init() {
     if (!this.isHidden()) {
@@ -54,4 +44,3 @@ app.views.RootPage = class RootPage extends app.View {
     }
   }
 };
-app.views.RootPage.initClass();