From b5dbe259a8b0954029bda9823db2717af83d9903 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 27 Feb 2021 16:38:10 -0800 Subject: [PATCH] settings_org: Move *_widget definitions before uses. Signed-off-by: Anders Kaseorg --- static/js/settings_org.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/settings_org.js b/static/js/settings_org.js index ea269a3824..0555d1c114 100644 --- a/static/js/settings_org.js +++ b/static/js/settings_org.js @@ -382,6 +382,10 @@ function update_dependent_subsettings(property_name) { } } +exports.default_code_language_widget = null; +exports.notifications_stream_widget = null; +exports.signup_notifications_stream_widget = null; + function discard_property_element_changes(elem) { elem = $(elem); const property_name = exports.extract_property_name(elem); @@ -592,10 +596,6 @@ exports.save_discard_widget_status_handler = (subsection) => { exports.change_save_button_state(save_btn_controls, button_state); }; -exports.default_code_language_widget = null; -exports.notifications_stream_widget = null; -exports.signup_notifications_stream_widget = null; - exports.init_dropdown_widgets = () => { const streams = stream_data.get_streams_for_settings_page(); const notification_stream_options = {