mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
TODOOO
This commit is contained in:
@@ -177,6 +177,10 @@ export class CompilationContext {
|
|||||||
const protectID = this.generateID();
|
const protectID = this.generateID();
|
||||||
this.rootContext.shouldDefineScope = true;
|
this.rootContext.shouldDefineScope = true;
|
||||||
this.addLine(`let _origScope${protectID} = scope;`);
|
this.addLine(`let _origScope${protectID} = scope;`);
|
||||||
|
this.addLine(`let _origScope${protectID} = scope;`);
|
||||||
|
// dict of origscopes
|
||||||
|
// export protectID in compiled string form
|
||||||
|
// fetch in subsequent code the relevant scope
|
||||||
this.addLine(`scope = Object.assign(Object.create(context), scope);`);
|
this.addLine(`scope = Object.assign(Object.create(context), scope);`);
|
||||||
return protectID;
|
return protectID;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user