From 72ebd17d62b689ce18c00c9583a01be689e42a46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCthe?= Date: Sat, 7 Nov 2020 10:15:51 +0100 Subject: [PATCH] renaming to more meaningful parameter name --- MMM-pages.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MMM-pages.js b/MMM-pages.js index 471e815..6642f0c 100644 --- a/MMM-pages.js +++ b/MMM-pages.js @@ -188,12 +188,12 @@ Module.register('MMM-pages', { * assumes that there is a discrepancy between the page currently being shown * and the page that is meant to be shown. * - * @param {string} [name] the name of the hiddenPage we want to show. + * @param {string} [targetPageName] the name of the hiddenPage we want to show. * Optional and only used when we want to switch to a hidden page */ - animatePageChange: function (name) { + animatePageChange: function (targetPageName) { const self = this; - const modulesToShow = (typeof name !== 'undefined') ? this.config.hiddenPages[name] : this.config.fixed.concat(this.config.modules[this.curPage]); + const modulesToShow = (typeof targetPageName !== 'undefined') ? this.config.hiddenPages[targetPageName] : this.config.fixed.concat(this.config.modules[this.curPage]); // Hides all modules not on the current page. This hides any module not // meant to be shown.