From 3a757b1f02bca961a529c0469d1df8092a09da63 Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Tue, 26 Jul 2022 09:42:03 -0400 Subject: [PATCH] ISTWCMS-5710: fixing linting of search --- src/patterns/04-components/search/search.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/patterns/04-components/search/search.js b/src/patterns/04-components/search/search.js index 7c74c22e..c447c3b3 100644 --- a/src/patterns/04-components/search/search.js +++ b/src/patterns/04-components/search/search.js @@ -16,11 +16,10 @@ $('.uw-header__masthead').toggleClass('open'); } ); + /** * Javascript for debounce - * @var {string} - * @var {Object} - * @param {func} + * @param {func} func The function to perform * @returns {function} debounce. */ function debouncer(func) { @@ -37,7 +36,11 @@ ); }; } - // Check the width of the screen and. + + /** + * Function to check the width. + * @returns {null} Null return. + */ function checkWidth() { // Set screenWidth var. var screenWidth = $(window).width(); -- GitLab