[IMP] qweb: turn handlers into function expressions only

For the sake of consistency with vanilla JS, and to allow some things
that were previously not possible.
This commit is contained in:
Samuel Degueldre
2021-11-12 12:56:07 +01:00
committed by Géry Debongnie
parent d60a5a414e
commit e611c20ab4
33 changed files with 280 additions and 227 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ describe("t-call", () => {
});
test("handlers with arguments are properly bound through a t-call", async () => {
const sub = xml`<p t-on-click="update(a)">lucas</p>`;
const sub = xml`<p t-on-click="() => this.update(a)">lucas</p>`;
let value: any = null;