[IMP] env: env is now frozen, useSubEnv does not affect user env

This commit is contained in:
Bruno Boi
2021-11-15 13:10:09 +01:00
committed by Aaron Bohy
parent 201f06c187
commit 3fa1bb62f6
13 changed files with 164 additions and 73 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import type { Env } from "../app/app";
import type { ComponentNode } from "./component_node";
// -----------------------------------------------------------------------------
@@ -9,10 +10,10 @@ export class Component {
static style: string = "";
props: any;
env: any;
env: Env;
__owl__: ComponentNode;
constructor(props: any, env: any, node: ComponentNode) {
constructor(props: any, env: Env, node: ComponentNode) {
this.props = props;
this.env = env;
this.__owl__ = node;