js: Use ES6 object literal shorthand syntax.

Generated by ESLint.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-20 13:18:43 -07:00
parent b2745f6e41
commit 96dcc0ce6e
189 changed files with 1328 additions and 1326 deletions

View File

@@ -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);
},
};