disable: Don't bother destroying clones as we'll destroy their parent

This removes a bunch of warnings.
This commit is contained in:
Tor Hedin Brønner
2018-04-30 00:03:08 +02:00
parent 30427f0bc4
commit c833998aae
+2 -5
View File
@@ -367,8 +367,6 @@ class Spaces extends Map {
}
destroy() {
this.spaceContainer.destroy();
for (let overlay of this.clickOverlays) {
overlay.destroy();
}
@@ -386,9 +384,6 @@ class Spaces extends Map {
actor[signals].forEach(id => actor.disconnect(id));
}
if (metaWindow.clone)
metaWindow.clone.destroy();
if (metaWindow[signals]) {
metaWindow[signals].forEach(id => metaWindow.disconnect(id));
delete metaWindow[signals];
@@ -405,6 +400,8 @@ class Spaces extends Map {
for (let [workspace, space] of this) {
this.removeSpace(space);
}
this.spaceContainer.destroy();
}
workspacesChanged() {