mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-11-24 19:24:30 -08:00
renaming to more meaningful parameter name
This commit is contained in:
parent
8094bbdc4e
commit
72ebd17d62
1 changed files with 3 additions and 3 deletions
|
@ -188,12 +188,12 @@ Module.register('MMM-pages', {
|
||||||
* assumes that there is a discrepancy between the page currently being shown
|
* assumes that there is a discrepancy between the page currently being shown
|
||||||
* and the page that is meant to be 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
|
* Optional and only used when we want to switch to a hidden page
|
||||||
*/
|
*/
|
||||||
animatePageChange: function (name) {
|
animatePageChange: function (targetPageName) {
|
||||||
const self = this;
|
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
|
// Hides all modules not on the current page. This hides any module not
|
||||||
// meant to be shown.
|
// meant to be shown.
|
||||||
|
|
Loading…
Reference in a new issue