mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
c049022798
This commit fixes how the apps methods are patched by decoupling the patching of the destroy method from the rest because we need to have a valid reference to a component node to do so (the root node in this case). The previous behavior was to only patch methods when an app with a root node is added but this was not working when the app has no root node initially and gets one dynamically. There is now a listener to patch the destroy method as soon as a root node is set on any of the apps if it is not already the case.