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

@@ -13,8 +13,8 @@ function send_typing_notification_ajax(user_ids_array, operation) {
to: JSON.stringify(user_ids_array),
op: operation,
},
success: function () {},
error: function (xhr) {
success() {},
error(xhr) {
blueslip.warn("Failed to send typing event: " + xhr.responseText);
},
});
@@ -53,9 +53,9 @@ function notify_server_stop(user_ids_array) {
exports.get_recipient = get_user_ids_array;
exports.initialize = function () {
const worker = {
get_current_time: get_current_time,
notify_server_start: notify_server_start,
notify_server_stop: notify_server_stop,
get_current_time,
notify_server_start,
notify_server_stop,
};
$(document).on("input", "#compose-textarea", () => {