diff --git a/modules/default/compliments/compliments.js b/modules/default/compliments/compliments.js index ad3b9e77..b9f2011e 100644 --- a/modules/default/compliments/compliments.js +++ b/modules/default/compliments/compliments.js @@ -6,8 +6,7 @@ * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. */ - -Module.register("compliments",{ +Module.register("compliments", { // Module config defaults. defaults: { @@ -97,7 +96,7 @@ Module.register("compliments",{ */ complimentArray: function() { var hour = moment().hour(); - var compliments = null; + var compliments = null; if (hour >= 3 && hour < 12) { compliments = this.config.compliments.morning; @@ -107,9 +106,11 @@ Module.register("compliments",{ compliments = this.config.compliments.evening; } - if (typeof compliments === 'undefined' ) compliments = new Array(); + if (typeof compliments === "undefined") { + compliments = new Array(); + } - if ( this.currentWeatherType in this.config.compliments) { + if (this.currentWeatherType in this.config.compliments) { compliments.push.apply(compliments, this.config.compliments[this.currentWeatherType]); } @@ -126,7 +127,7 @@ Module.register("compliments",{ var xobj = new XMLHttpRequest(); xobj.overrideMimeType("application/json"); xobj.open("GET", this.file(this.config.remoteFile), true); - xobj.onreadystatechange = function () { + xobj.onreadystatechange = function() { if (xobj.readyState == 4 && xobj.status == "200") { callback(xobj.responseText); } @@ -192,4 +193,4 @@ Module.register("compliments",{ } }, -}); +}); \ No newline at end of file