|
@@ -10,7 +10,7 @@ export class TrashDrawer extends SelectableDrawer {
|
|
|
}
|
|
|
|
|
|
draw(e) {
|
|
|
- const objects = Objects.getSelectedObjects();
|
|
|
+ const objects = [...Objects.getSelectedObjects()];
|
|
|
objects.forEach(aggregator => {
|
|
|
this.delete(aggregator);
|
|
|
});
|
|
@@ -21,7 +21,9 @@ export class TrashDrawer extends SelectableDrawer {
|
|
|
delete(aggregator) {
|
|
|
|
|
|
Objects.removeAggregator(aggregator);
|
|
|
+
|
|
|
aggregator.aggregators.forEach(dependenceAggregator => {
|
|
|
+
|
|
|
this.delete(dependenceAggregator);
|
|
|
|
|
|
});
|
|
@@ -30,7 +32,6 @@ export class TrashDrawer extends SelectableDrawer {
|
|
|
}
|
|
|
|
|
|
update(aggregator, e) {
|
|
|
-
|
|
|
return;
|
|
|
}
|
|
|
}
|