fixed bug where module would not properly visibility-lock modules

This commit is contained in:
Edward Shen 2017-08-27 02:43:31 -04:00
parent 073ec5e290
commit aab0d1d627

View file

@ -46,13 +46,13 @@ Module.register("MMM-pages", {
MM.getModules()
.exceptWithClass(this.config.excludes)
.exceptWithClass(this.config.modules[this.curPage])
.enumerate(module => { module.hide(this.config.animationTime / 2, { lockstring: this.identifier }) });
.enumerate(module => { module.hide(this.config.animationTime / 2, { lockString: this.identifier }) });
let self = this;
setTimeout(function() {
MM.getModules()
.withClass(self.config.modules[self.curPage])
.enumerate(module => { module.show(self.config.animationTime / 2, { lockstring: self.identifier }) });
.enumerate(module => { module.show(self.config.animationTime / 2, { lockString: self.identifier }) });
}, this.config.animationTime / 2);
} else { Log.error("Pages aren't properly defined!") }
},