浏览代码

Sanity-check decaffeinate app.views.TypePage

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

+ 1 - 12
assets/javascripts/views/content/type_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.TypePage = class TypePage extends app.View {
-  static initClass() {
-    this.className = "_page";
-  }
+  static className = "_page";
 
   deactivate() {
     if (super.deactivate(...arguments)) {
@@ -32,4 +22,3 @@ app.views.TypePage = class TypePage extends app.View {
     this.render(context.type);
   }
 };
-app.views.TypePage.initClass();