[IMP] allow to combine t-transition and t-widget

Closes #94
This commit is contained in:
Aaron Bohy
2019-05-20 10:45:26 +02:00
parent 59f401303a
commit 639908366a
6 changed files with 263 additions and 21 deletions
+4
View File
@@ -269,6 +269,9 @@ export class QWeb {
// pollute the rendering context by adding some keys in it.
ctx.code.unshift(" let owner = context;");
}
if (ctx.shouldDefineUtils) {
ctx.code.unshift(" let utils = this.utils;");
}
if (!ctx.rootNode) {
throw new Error("A template should have one root node");
@@ -613,6 +616,7 @@ export class Context {
rootContext: Context;
caller: Element | undefined;
shouldDefineOwner: boolean = false;
shouldDefineUtils: boolean = false;
shouldProtectContext: boolean = false;
inLoop: boolean = false;
inPreTag: boolean = false;