From 10d3a284e9a927293f71b6615a15c6d64a4fada1 Mon Sep 17 00:00:00 2001 From: Karsten Hassel Date: Fri, 11 Jun 2021 23:10:41 +0200 Subject: [PATCH] fix js lint warnings --- js/app.js | 1 - js/class.js | 1 - js/main.js | 7 ------- 3 files changed, 9 deletions(-) diff --git a/js/app.js b/js/app.js index e5156b19..6315370b 100644 --- a/js/app.js +++ b/js/app.js @@ -180,7 +180,6 @@ function App() { * * @param {string} a Version number a. * @param {string} b Version number b. - * * @returns {number} A positive number if a is larger than b, a negative * number if a is smaller and 0 if they are the same */ diff --git a/js/class.js b/js/class.js index 9c46a894..b25ced0a 100644 --- a/js/class.js +++ b/js/class.js @@ -84,7 +84,6 @@ * Define the clone method for later use. Helper Method. * * @param {object} obj Object to be cloned - * * @returns {object} the cloned object */ function cloneObject(obj) { diff --git a/js/main.js b/js/main.js index c3141fa9..bc128194 100644 --- a/js/main.js +++ b/js/main.js @@ -70,7 +70,6 @@ const MM = (function () { * Select the wrapper dom object for a specific position. * * @param {string} position The name of the position. - * * @returns {HTMLElement} the wrapper element */ const selectWrapper = function (position) { @@ -106,7 +105,6 @@ const MM = (function () { * * @param {Module} module The module that needs an update. * @param {number} [speed] The (optional) number of microseconds for the animation. - * * @returns {Promise} Resolved when the dom is fully updated. */ const updateDom = function (module, speed) { @@ -136,7 +134,6 @@ const MM = (function () { * @param {number} [speed] The (optional) number of microseconds for the animation. * @param {string} newHeader The new header that is generated. * @param {HTMLElement} newContent The new content that is generated. - * * @returns {Promise} Resolved when the module dom has been updated. */ const updateDomWithContent = function (module, speed, newHeader, newContent) { @@ -174,7 +171,6 @@ const MM = (function () { * @param {Module} module The module to check. * @param {string} newHeader The new header that is generated. * @param {HTMLElement} newContent The new content that is generated. - * * @returns {boolean} True if the module need an update, false otherwise */ const moduleNeedsUpdate = function (module, newHeader, newContent) { @@ -390,7 +386,6 @@ const MM = (function () { * Filter modules with the specified classes. * * @param {string|string[]} className one or multiple classnames (array or space divided). - * * @returns {Module[]} Filtered collection of modules. */ const withClass = function (className) { @@ -401,7 +396,6 @@ const MM = (function () { * Filter modules without the specified classes. * * @param {string|string[]} className one or multiple classnames (array or space divided). - * * @returns {Module[]} Filtered collection of modules. */ const exceptWithClass = function (className) { @@ -413,7 +407,6 @@ const MM = (function () { * * @param {string|string[]} className one or multiple classnames (array or space divided). * @param {boolean} include if the filter should include or exclude the modules with the specific classes. - * * @returns {Module[]} Filtered collection of modules. */ const modulesByClass = function (className, include) {