Sanity-check decaffeinate app.views.ListFocus

pull/1441/head
Simon Legner 1 year ago
parent 1997d1ecbc
commit b07fd01ab1

@ -1,27 +1,16 @@
// 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
* DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/
app.views.ListFocus = class ListFocus extends app.View { app.views.ListFocus = class ListFocus extends app.View {
static initClass() { static activeClass = "focus";
this.activeClass = "focus";
static events = { click: "onClick" };
this.events = { click: "onClick" };
static shortcuts = {
this.shortcuts = { up: "onUp",
up: "onUp", down: "onDown",
down: "onDown", left: "onLeft",
left: "onLeft", enter: "onEnter",
enter: "onEnter", superEnter: "onSuperEnter",
superEnter: "onSuperEnter", escape: "blur",
escape: "blur", };
};
}
constructor(el) { constructor(el) {
super(el); super(el);
@ -194,4 +183,3 @@ app.views.ListFocus = class ListFocus extends app.View {
} }
} }
}; };
app.views.ListFocus.initClass();

Loading…
Cancel
Save