浏览代码

Sanity-check decaffeinate app.views.SupportTablesPage

Simon Legner 1 年之前
父节点
当前提交
b201fb269f
共有 1 个文件被更改,包括 1 次插入11 次删除
  1. 1 11
      assets/javascripts/views/pages/support_tables.js

+ 1 - 11
assets/javascripts/views/pages/support_tables.js

@@ -1,18 +1,9 @@
-// TODO: This file was created by bulk-decaffeinate.
-// Sanity-check the conversion and remove this comment.
-/*
- * decaffeinate suggestions:
- * DS206: Consider reworking classes to avoid initClass
- * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
- */
 //= require views/pages/base
 
 app.views.SupportTablesPage = class SupportTablesPage extends (
   app.views.BasePage
 ) {
-  static initClass() {
-    this.events = { click: "onClick" };
-  }
+  static events = { click: "onClick" };
 
   onClick(event) {
     if (!event.target.classList.contains("show-all")) {
@@ -27,4 +18,3 @@ app.views.SupportTablesPage = class SupportTablesPage extends (
     el.classList.add("show-all");
   }
 };
-app.views.SupportTablesPage.initClass();