Remove stream observers when reloading component

This commit is contained in:
Mo Bitar
2018-06-24 18:08:44 -05:00
parent 2014f3c7a1
commit 820ab23c08

View File

@@ -815,6 +815,14 @@ class ComponentManager {
}
}
this.streamObservers = this.streamObservers.filter(function(o){
return o.component !== component;
})
this.contextStreamObservers = this.contextStreamObservers.filter(function(o){
return o.component !== component;
})
if(component.area == "themes") {
this.postActiveThemeToAllComponents();
}