History

Sanity-check decaffeinate app.views.EntryList

Simon Legner committed 2 years ago

Commit 38b3a951 parent 01440d21 file · +2 −13Browse files

Unified · Split

assets/javascripts/views/sidebar/entry_list.js+2−13
@@ -1,18 +1,8 @@
1−// TODO: This file was created by bulk-decaffeinate.
2−// Sanity-check the conversion and remove this comment.
3−/*
4− * decaffeinate suggestions:
5− * DS102: Remove unnecessary code created because of implicit returns
6− * DS206: Consider reworking classes to avoid initClass
7− * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
8− */
91 //= require views/list/paginated_list
102
113 app.views.EntryList = class EntryList extends app.views.PaginatedList {
12− static initClass() {
13− this.tagName = "div";
14− this.className = "_list _list-sub";
15− }
4+ static tagName = "div";
5+ static className = "_list _list-sub";
166
177 constructor(entries) {
188 super(...arguments);
@@ -30,4 +20,3 @@ app.views.EntryList = class EntryList extends app.views.PaginatedList { · 11 unmodified lines
3020 return this.tmpl("sidebarEntry", entries);
3121 }
3222 };
33−app.views.EntryList.initClass();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t