use this instead of self

This commit is contained in:
Edward Shen 2020-11-23 18:36:20 -05:00
parent cb4700fc19
commit 5882ea6ce7
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -197,7 +197,7 @@ Module.register('MMM-pages', {
* 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 (targetPageName) { animatePageChange: function (targetPageName) {
let lockStringObj = { lockString: self.identifier }; let lockStringObj = { lockString: this.identifier };
if (!this.config.useLockString) { if (!this.config.useLockString) {
// Passing in an undefined object is equivalent to not passing it in at // 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 // all, effectively providing only one arg to the hide and show calls