Skip to content

Commit

Permalink
Merge pull request #969 from ChristianMayer/cherry_pick_968
Browse files Browse the repository at this point in the history
Cherry pick #968
  • Loading branch information
ChristianMayer committed Nov 3, 2019
2 parents 92f9f5d + 40f09ff commit 530cfc5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/class/cv/plugins/OpenweatherMap.js
Expand Up @@ -25,7 +25,7 @@
* @author Matthias
* @since 0.9.0
* @asset(plugins/openweathermap/owm_core.js,
* plugins/openweathermap/owm_basic_style.css,
* plugins/openweathermap/owm_basic_style.css,
* plugins/openweathermap/owm_weathericon.css)
*/
qx.Class.define('cv.plugins.OpenweatherMap', {
Expand All @@ -46,6 +46,14 @@ qx.Class.define('cv.plugins.OpenweatherMap', {
this.__options[key] = props[key];
}
}, this);
if (cv.TemplateEngine.getInstance().isDomFinished()) {
this._refreshAction();
} else {
qx.event.message.Bus.subscribe("setup.dom.finished", function () {
// init once
this._refreshAction();
}, this);
}
},

/*
Expand Down

0 comments on commit 530cfc5

Please sign in to comment.