Browse Source

Sanity-check decaffeinate app.views.EntryList

Simon Legner 1 year ago
parent
commit
38b3a95de4
1 changed files with 2 additions and 13 deletions
  1. 2 13
      assets/javascripts/views/sidebar/entry_list.js

+ 2 - 13
assets/javascripts/views/sidebar/entry_list.js

@@ -1,18 +1,8 @@
-// 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
- */
 //= require views/list/paginated_list
 
 app.views.EntryList = class EntryList extends app.views.PaginatedList {
-  static initClass() {
-    this.tagName = "div";
-    this.className = "_list _list-sub";
-  }
+  static tagName = "div";
+  static className = "_list _list-sub";
 
   constructor(entries) {
     super(...arguments);
@@ -30,4 +20,3 @@ app.views.EntryList = class EntryList extends app.views.PaginatedList {
     return this.tmpl("sidebarEntry", entries);
   }
 };
-app.views.EntryList.initClass();