[FIX] web: ActionContainer: properly unbind handler

This isn't a problem in production, because the ActionContainer is
never destroyed, but it caused a small memory leak in the test
environment.

closes odoo/odoo#78698

X-original-commit: d01c89d80d58763e45309dbcfbf83f852866982e
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Aaron Bohy
2021-10-20 15:15:24 +00:00
parent 3feba2da91
commit 9c5fecdf90
@@ -16,9 +16,9 @@ export class ActionContainer extends Component {
});
}
destroy() {
__destroy() {
this.env.bus.off("ACTION_MANAGER:UPDATE", this);
super.destroy();
super.__destroy();
}
}
ActionContainer.components = { ActionDialog };