popovers: Add comment to clarify hideAll is a tippy function.

This helps some reviewing the code or just skimming through.
This commit is contained in:
Aman Agrawal 2022-11-30 12:28:31 +00:00 committed by Tim Abbott
parent ae3e3fa3cc
commit 13b478f81f
1 changed files with 1 additions and 0 deletions

View File

@ -1134,6 +1134,7 @@ export function any_active() {
export function hide_all_except_sidebars(opts) {
$(".has_popover").removeClass("has_popover has_actions_popover has_emoji_popover");
if (!opts || !opts.not_hide_tippy_instances) {
// hideAll hides all tippy instances (tooltips and popovers).
hideAll();
} else if (opts.exclude_tippy_instance) {
hideAll({exclude: opts.exclude_tippy_instance});