Fixed code formatting issues

This commit is contained in:
Thomas Bachmann 2017-01-04 11:01:07 +01:00
parent 0099b6d4a2
commit 6251b77b28

View File

@ -290,11 +290,11 @@ Module.register("newsfeed",{
notificationReceived: function(notification, payload, sender) {
Log.info(this.name + " - received event");
if(notification == 'GESTURE'){
if(notification == "GESTURE"){
Log.info(this.name + " - received gesture");
var gesture = payload.gesture;
// actually RIGHT, because gesture sensor is built in upside down
if(gesture == 'LEFT'){
if(gesture == "LEFT"){
Log.info(this.name + " - received right");
var before = this.activeItem;
this.activeItem++;
@ -310,7 +310,7 @@ Module.register("newsfeed",{
this.updateDom(100);
}
// actually LEFT, because gesture sensor is built in upside down
else if(gesture == 'RIGHT'){
else if(gesture == "RIGHT"){
Log.info(this.name + " - received left");
var before = this.activeItem;
this.activeItem--;
@ -326,7 +326,7 @@ Module.register("newsfeed",{
this.updateDom(100);
}
// actually UP, because gesture sensor is built in upside down
else if(gesture == 'DOWN' && !this.config.showDescription){
else if(gesture == "DOWN" && !this.config.showDescription){
Log.info(this.name + " - received up");
this.config.showDescription = true;
this.config.showFullArticle = false;
@ -335,7 +335,7 @@ Module.register("newsfeed",{
this.updateDom(100);
}
// actually DOWN, because gesture sensor is built in upside down
else if(gesture == 'UP'){
else if(gesture == "UP"){
Log.info(this.name + " - received down");
this.config.showDescription = false;
this.config.showFullArticle = false;
@ -345,7 +345,7 @@ Module.register("newsfeed",{
this.updateDom(100);
}
// actually UP, because gesture sensor is built in upside down
else if(gesture == 'DOWN' && this.config.showDescription){
else if(gesture == "DOWN" && this.config.showDescription){
Log.info(this.name + " - received up again");
this.config.showFullArticle = true;
this.config.showDescription = false;