mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-11-24 11:14:29 -08:00
Use camel case
This commit is contained in:
parent
bf1f866b52
commit
51af1f6632
1 changed files with 6 additions and 6 deletions
12
MMM-pages.js
12
MMM-pages.js
|
@ -247,11 +247,11 @@ Module.register('MMM-pages', {
|
||||||
clearTimeout(this.delayTimer);
|
clearTimeout(this.delayTimer);
|
||||||
this.delayTimer=null
|
this.delayTimer=null
|
||||||
}
|
}
|
||||||
let rotation_timeout=this.config.rotationTime
|
let rotationTimeout=this.config.rotationTime
|
||||||
if(this.config.pageTimeout.length){
|
if(this.config.pageTimeout.length){
|
||||||
for(let pageInfo of this.config.pageTimeout){
|
for(let pageInfo of this.config.pageTimeout){
|
||||||
if((pageInfo.pageNumber) -1 == this.curPage){
|
if((pageInfo.pageNumber) -1 == this.curPage){
|
||||||
rotation_timeout= pageInfo.timeout
|
rotationTimeout= pageInfo.timeout
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,7 @@ Module.register('MMM-pages', {
|
||||||
// message, so we need to trigger it for ourselves.
|
// message, so we need to trigger it for ourselves.
|
||||||
self.sendNotification('PAGE_INCREMENT');
|
self.sendNotification('PAGE_INCREMENT');
|
||||||
self.notificationReceived('PAGE_INCREMENT');
|
self.notificationReceived('PAGE_INCREMENT');
|
||||||
}, rotation_timeout);
|
}, rotationTimeout);
|
||||||
}, delay, this);
|
}, delay, this);
|
||||||
} else if (this.config.rotationHomePage > 0) {
|
} else if (this.config.rotationHomePage > 0) {
|
||||||
// This timer is the auto rotate function.
|
// This timer is the auto rotate function.
|
||||||
|
@ -277,11 +277,11 @@ Module.register('MMM-pages', {
|
||||||
clearTimeout(this.delayTimer);
|
clearTimeout(this.delayTimer);
|
||||||
this.delayTimer=null
|
this.delayTimer=null
|
||||||
}
|
}
|
||||||
let rotation_timeout=this.config.rotationHomePage
|
let rotationTimeout=this.config.rotationHomePage
|
||||||
if(this.config.pageTimeout.length){
|
if(this.config.pageTimeout.length){
|
||||||
for(let pageInfo of this.config.pageTimeout){
|
for(let pageInfo of this.config.pageTimeout){
|
||||||
if((pageInfo.pagenumber) -1 == this.curPage){
|
if((pageInfo.pagenumber) -1 == this.curPage){
|
||||||
rotation_timeout= pageInfo.timeout
|
rotationTimeout= pageInfo.timeout
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -295,7 +295,7 @@ Module.register('MMM-pages', {
|
||||||
// message, so we need to trigger it for ourselves.
|
// message, so we need to trigger it for ourselves.
|
||||||
self.sendNotification('PAGE_CHANGED', 0);
|
self.sendNotification('PAGE_CHANGED', 0);
|
||||||
self.notificationReceived('PAGE_CHANGED', self.config.homePage);
|
self.notificationReceived('PAGE_CHANGED', self.config.homePage);
|
||||||
}, rotation_timeout);
|
}, rotationTimeout);
|
||||||
}, delay);
|
}, delay);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue