js: Move popover.initialize to end of file.

Moved the initialize function in popover.js at end of file to
follow 'no-use-before-define' for function 'hide_all' being called
in initialize function and to follow convention to put
initialize at the end of the file.
This commit is contained in:
Hardik Dharmani
2023-03-16 13:04:50 +05:30
committed by Tim Abbott
parent 2c30bbbf74
commit b722cf31cb

View File

@@ -56,11 +56,6 @@ let userlist_placement = "right";
let list_of_popovers = [];
export function initialize() {
overlays.register_pre_open_hook(hide_all);
overlays.register_pre_close_hook(hide_all);
}
export function clear_for_testing() {
$current_message_info_popover_elem = undefined;
$current_user_info_popover_elem = undefined;
@@ -1221,3 +1216,8 @@ export function compute_placement(
return placement;
}
export function initialize() {
overlays.register_pre_open_hook(hide_all);
overlays.register_pre_close_hook(hide_all);
}