mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Eliminate unnecessary calls to "function".
(imported from commit 30afb6eb4b037991ed0569db63e71dcce53e4554)
This commit is contained in:
		@@ -156,12 +156,8 @@ exports.initialize = function () {
 | 
			
		||||
    select_on_focus("private_message_recipient");
 | 
			
		||||
 | 
			
		||||
    // These handlers are at the "form" level so that they are called after typeahead
 | 
			
		||||
    $("form#send_message_form").keydown(function (e) {
 | 
			
		||||
        handle_keydown(e);
 | 
			
		||||
    });
 | 
			
		||||
    $("form#send_message_form").keyup(function (e) {
 | 
			
		||||
        handle_keyup(e);
 | 
			
		||||
    });
 | 
			
		||||
    $("form#send_message_form").keydown(handle_keydown);
 | 
			
		||||
    $("form#send_message_form").keyup(handle_keyup);
 | 
			
		||||
 | 
			
		||||
    $("#enter_sends").click(function () {
 | 
			
		||||
        var send_button = $("#compose-send-button");
 | 
			
		||||
 
 | 
			
		||||
@@ -61,9 +61,7 @@ function edit_message (row, raw_content) {
 | 
			
		||||
    var edit_obj = {form: form, raw_content: raw_content};
 | 
			
		||||
    current_msg_list.show_edit_message(row, edit_obj);
 | 
			
		||||
 | 
			
		||||
    form.keydown(function (e) {
 | 
			
		||||
        handle_edit_keydown(e);
 | 
			
		||||
    });
 | 
			
		||||
    form.keydown(handle_edit_keydown);
 | 
			
		||||
 | 
			
		||||
    currently_editing_messages[message.id] = edit_obj;
 | 
			
		||||
    if (message.subject === compose.empty_subject_placeholder()) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user