1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Fix live update while switching entities

This commit is contained in:
Markus Grigull 2015-10-09 12:31:42 +02:00
parent 5a84de89c0
commit 14e29f91cc

View file

@ -23,7 +23,9 @@ export default Ember.Component.extend({
_drawPlot: function() {
var elementId = this.get('elementId');
$.plot('#' + elementId, this.data);
if (elementId) {
$.plot('#' + elementId, this.data);
}
Ember.run.later(this, function() {
this._drawPlot();