formating fix so that grunt passes

This commit is contained in:
LAPTOP-KAUR\race2 2017-02-08 19:29:52 +02:00
parent cbafaf5d56
commit 90f60f95f7

View File

@ -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",{
}
},
});
});