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