mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
js: Use ES6 object literal shorthand syntax.
Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -42,7 +42,7 @@ const list_cursor = function (opts) {
|
||||
}
|
||||
|
||||
const li = opts.list.find_li({
|
||||
key: key,
|
||||
key,
|
||||
force_render: true,
|
||||
});
|
||||
|
||||
@@ -51,11 +51,11 @@ const list_cursor = function (opts) {
|
||||
}
|
||||
|
||||
return {
|
||||
highlight: function () {
|
||||
highlight() {
|
||||
li.addClass(opts.highlight_class);
|
||||
self.adjust_scroll(li);
|
||||
},
|
||||
clear: function () {
|
||||
clear() {
|
||||
li.removeClass(opts.highlight_class);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user