Error in MagicMirror/modules/default/currentWeather/currentWeather.js line 296, 300

Notice that self.config.animationSpeed can not be found because the notificationReceived function does not have "self" variable.
This commit is contained in:
wonjerry 2018-04-06 21:25:10 +09:00
parent d21d9f0141
commit b73c549131
2 changed files with 8 additions and 2 deletions

View File

@ -22,6 +22,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Updated German translation
- Updated Dutch translation
## [2.3.1] - 2018-04-06
### Fixed
- In default module currentWeather/currentWeather.js line 296, 300, self.config.animationSpeed can not be found because the notificationReceived function does not have "self" variable.
## [2.3.1] - 2018-04-01
### Fixed

View File

@ -293,11 +293,11 @@ Module.register("currentweather",{
}
if (notification === "INDOOR_TEMPERATURE") {
this.indoorTemperature = this.roundValue(payload);
this.updateDom(self.config.animationSpeed);
this.updateDom(this.config.animationSpeed);
}
if (notification === "INDOOR_HUMIDITY") {
this.indoorHumidity = this.roundValue(payload);
this.updateDom(self.config.animationSpeed);
this.updateDom(this.config.animationSpeed);
}
},