mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
fix js lint warnings
This commit is contained in:
parent
1a244726aa
commit
10d3a284e9
@ -180,7 +180,6 @@ function App() {
|
|||||||
*
|
*
|
||||||
* @param {string} a Version number a.
|
* @param {string} a Version number a.
|
||||||
* @param {string} b Version number b.
|
* @param {string} b Version number b.
|
||||||
*
|
|
||||||
* @returns {number} A positive number if a is larger than b, a negative
|
* @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
|
* number if a is smaller and 0 if they are the same
|
||||||
*/
|
*/
|
||||||
|
@ -84,7 +84,6 @@
|
|||||||
* Define the clone method for later use. Helper Method.
|
* Define the clone method for later use. Helper Method.
|
||||||
*
|
*
|
||||||
* @param {object} obj Object to be cloned
|
* @param {object} obj Object to be cloned
|
||||||
*
|
|
||||||
* @returns {object} the cloned object
|
* @returns {object} the cloned object
|
||||||
*/
|
*/
|
||||||
function cloneObject(obj) {
|
function cloneObject(obj) {
|
||||||
|
@ -70,7 +70,6 @@ const MM = (function () {
|
|||||||
* Select the wrapper dom object for a specific position.
|
* Select the wrapper dom object for a specific position.
|
||||||
*
|
*
|
||||||
* @param {string} position The name of the position.
|
* @param {string} position The name of the position.
|
||||||
*
|
|
||||||
* @returns {HTMLElement} the wrapper element
|
* @returns {HTMLElement} the wrapper element
|
||||||
*/
|
*/
|
||||||
const selectWrapper = function (position) {
|
const selectWrapper = function (position) {
|
||||||
@ -106,7 +105,6 @@ const MM = (function () {
|
|||||||
*
|
*
|
||||||
* @param {Module} module The module that needs an update.
|
* @param {Module} module The module that needs an update.
|
||||||
* @param {number} [speed] The (optional) number of microseconds for the animation.
|
* @param {number} [speed] The (optional) number of microseconds for the animation.
|
||||||
*
|
|
||||||
* @returns {Promise} Resolved when the dom is fully updated.
|
* @returns {Promise} Resolved when the dom is fully updated.
|
||||||
*/
|
*/
|
||||||
const updateDom = function (module, speed) {
|
const updateDom = function (module, speed) {
|
||||||
@ -136,7 +134,6 @@ const MM = (function () {
|
|||||||
* @param {number} [speed] The (optional) number of microseconds for the animation.
|
* @param {number} [speed] The (optional) number of microseconds for the animation.
|
||||||
* @param {string} newHeader The new header that is generated.
|
* @param {string} newHeader The new header that is generated.
|
||||||
* @param {HTMLElement} newContent The new content that is generated.
|
* @param {HTMLElement} newContent The new content that is generated.
|
||||||
*
|
|
||||||
* @returns {Promise} Resolved when the module dom has been updated.
|
* @returns {Promise} Resolved when the module dom has been updated.
|
||||||
*/
|
*/
|
||||||
const updateDomWithContent = function (module, speed, newHeader, newContent) {
|
const updateDomWithContent = function (module, speed, newHeader, newContent) {
|
||||||
@ -174,7 +171,6 @@ const MM = (function () {
|
|||||||
* @param {Module} module The module to check.
|
* @param {Module} module The module to check.
|
||||||
* @param {string} newHeader The new header that is generated.
|
* @param {string} newHeader The new header that is generated.
|
||||||
* @param {HTMLElement} newContent The new content that is generated.
|
* @param {HTMLElement} newContent The new content that is generated.
|
||||||
*
|
|
||||||
* @returns {boolean} True if the module need an update, false otherwise
|
* @returns {boolean} True if the module need an update, false otherwise
|
||||||
*/
|
*/
|
||||||
const moduleNeedsUpdate = function (module, newHeader, newContent) {
|
const moduleNeedsUpdate = function (module, newHeader, newContent) {
|
||||||
@ -390,7 +386,6 @@ const MM = (function () {
|
|||||||
* Filter modules with the specified classes.
|
* Filter modules with the specified classes.
|
||||||
*
|
*
|
||||||
* @param {string|string[]} className one or multiple classnames (array or space divided).
|
* @param {string|string[]} className one or multiple classnames (array or space divided).
|
||||||
*
|
|
||||||
* @returns {Module[]} Filtered collection of modules.
|
* @returns {Module[]} Filtered collection of modules.
|
||||||
*/
|
*/
|
||||||
const withClass = function (className) {
|
const withClass = function (className) {
|
||||||
@ -401,7 +396,6 @@ const MM = (function () {
|
|||||||
* Filter modules without the specified classes.
|
* Filter modules without the specified classes.
|
||||||
*
|
*
|
||||||
* @param {string|string[]} className one or multiple classnames (array or space divided).
|
* @param {string|string[]} className one or multiple classnames (array or space divided).
|
||||||
*
|
|
||||||
* @returns {Module[]} Filtered collection of modules.
|
* @returns {Module[]} Filtered collection of modules.
|
||||||
*/
|
*/
|
||||||
const exceptWithClass = function (className) {
|
const exceptWithClass = function (className) {
|
||||||
@ -413,7 +407,6 @@ const MM = (function () {
|
|||||||
*
|
*
|
||||||
* @param {string|string[]} className one or multiple classnames (array or space divided).
|
* @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.
|
* @param {boolean} include if the filter should include or exclude the modules with the specific classes.
|
||||||
*
|
|
||||||
* @returns {Module[]} Filtered collection of modules.
|
* @returns {Module[]} Filtered collection of modules.
|
||||||
*/
|
*/
|
||||||
const modulesByClass = function (className, include) {
|
const modulesByClass = function (className, include) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user