Skip to content

Commit

Permalink
fix(visualizer): improves teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Feb 3, 2016
1 parent 9013811 commit e68fcb4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions addon/debug/visualization.js
Expand Up @@ -192,11 +192,19 @@ export default class Visualization {
this.radar = null;
this.component = null;
this.satellites.forEach((satellite) => {
satellite.destroy();
satellite.mirrorSatellite = null;
satellite.siblingSatellite = null;
if (satellite.parentNode) {
satellite.parentNode.removeChild(satellite);
}
});
this.satellites = null;
this.cache.forEach((satellite) => {
satellite.destroy();
satellite.mirrorSatellite = null;
satellite.siblingSatellite = null;
if (satellite.parentNode) {
satellite.parentNode.removeChild(satellite);
}
});
this.cache = null;
}
Expand Down

0 comments on commit e68fcb4

Please sign in to comment.