mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] qweb: re-add support of t-on directive
We add some test for the t-on directive. For making them pass, it was necessary to change the code produced by compileTForeach: the const declaration is not done by using generateId and there was some conflict with the variable names produced in captureExpression. Consequently, many snapshots had to be changed. Code prettification has been done too.
This commit is contained in:
committed by
Aaron Bohy
parent
ee1ef20ce1
commit
d6668e3439
@@ -919,7 +919,9 @@ describe("lifecycle hooks", () => {
|
||||
static template = xml`<div/>`;
|
||||
setup() {
|
||||
created = true;
|
||||
onMounted(() => { mounted = true; })
|
||||
onMounted(() => {
|
||||
mounted = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
class Parent extends Component {
|
||||
|
||||
Reference in New Issue
Block a user