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 */
9//= require views/list/paginated_list1//= require views/list/paginated_list
10 2
11app.views.EntryList = class EntryList extends app.views.PaginatedList {3app.views.EntryList = class EntryList extends app.views.PaginatedList {
12 static initClass() {4 static tagName = "div";
13 this.tagName = "div";5 static className = "_list _list-sub";
14 this.className = "_list _list-sub";
15 }
16 6
17 constructor(entries) {7 constructor(entries) {
18 super(...arguments);8 super(...arguments);
@@ -30,4 +20,3 @@ app.views.EntryList = class EntryList extends app.views.PaginatedList { · 11 unmodified lines
30 return this.tmpl("sidebarEntry", entries);20 return this.tmpl("sidebarEntry", entries);
31 }21 }
32};22};
33app.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