mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
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:
committed by
Tim Abbott
parent
2c30bbbf74
commit
b722cf31cb
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user