fixed bug?

This commit is contained in:
Edward Shen 2018-05-06 18:11:27 -04:00
parent 6c15c9edaf
commit bdec10fde3
No known key found for this signature in database
GPG key ID: 4E887A42793D0433

View file

@ -13,7 +13,7 @@ Module.register('MMM-pages', {
excludes: ['MMM-page-indicator'], excludes: ['MMM-page-indicator'],
animationTime: 1000, animationTime: 1000,
rotationTime: 0, rotationTime: 0,
rotationDelay: 10000, rotationDelay: 10000
}, },
/** /**
@ -109,7 +109,7 @@ Module.register('MMM-pages', {
.enumerate((module) => { .enumerate((module) => {
module.hide( module.hide(
self.config.animationTime / 2, self.config.animationTime / 2,
{ lockString: self.identifier }, { lockString: self.identifier }
); );
}); });
@ -120,7 +120,7 @@ Module.register('MMM-pages', {
.enumerate((module) => { .enumerate((module) => {
module.show( module.show(
self.config.animationTime / 2, self.config.animationTime / 2,
{ lockString: self.identifier }, { lockString: self.identifier }
); );
}); });
}, this.config.animationTime / 2); }, this.config.animationTime / 2);
@ -135,7 +135,7 @@ Module.register('MMM-pages', {
// Incrementing page // Incrementing page
self.curPage = self.mod( self.curPage = self.mod(
self.curPage + 1, self.curPage + 1,
self.config.modules.length, self.config.modules.length
); );
self.sendNotification('PAGE_INCREMENT'); self.sendNotification('PAGE_INCREMENT');
self.updatePages(false); self.updatePages(false);