1
Fork 0

Add some JSDoc comments to rustdoc JS

This follows the Closure Compiler dialect of JSDoc, so we
can use it to do some basic type checking. We don't plan to
compile with Closure Compiler, just use it to check types. See
https://github.com/google/closure-compiler/wiki/ for details.
This commit is contained in:
Jacob Hoffman-Andrews 2021-12-16 21:17:22 -08:00
parent e100ec5bc7
commit 7ba086c6db
5 changed files with 170 additions and 30 deletions

View file

@ -420,6 +420,13 @@ function hideThemeButtonState() {
return document.getElementById("help");
}
/**
* Show the help popup.
*
* @param {boolean} display - Whether to show or hide the popup
* @param {Event} ev - The event that triggered this call
* @param {Element} [help] - The help element if it already exists
*/
function displayHelp(display, ev, help) {
if (display) {
help = help ? help : getHelpElement(true);