From 5882ea6ce7f7a07946018a1eacabb0f8953181da Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Mon, 23 Nov 2020 18:36:20 -0500 Subject: [PATCH] use this instead of self --- MMM-pages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMM-pages.js b/MMM-pages.js index 7e8bdc1..3ef9fdd 100644 --- a/MMM-pages.js +++ b/MMM-pages.js @@ -197,7 +197,7 @@ Module.register('MMM-pages', { * Optional and only used when we want to switch to a hidden page */ animatePageChange: function (targetPageName) { - let lockStringObj = { lockString: self.identifier }; + let lockStringObj = { lockString: this.identifier }; if (!this.config.useLockString) { // Passing in an undefined object is equivalent to not passing it in at // all, effectively providing only one arg to the hide and show calls