js/main: Add docs to private function

Oh, well...

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>
This commit is contained in:
Carlos Garnacho 2022-01-29 01:14:56 +01:00
parent 21cc534add
commit 1dcc6d1b6b

View File

@ -503,6 +503,14 @@ function notifyError(msg, details) {
notify(msg, details);
}
/**
* _findModal:
*
* @param {Clutter.Grab} grab - grab
*
* Private function.
*
*/
function _findModal(grab) {
for (let i = 0; i < modalActorFocusStack.length; i++) {
if (modalActorFocusStack[i].grab === grab)