Skip to content

Commit

Permalink
[REF] component_node: slightly simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
ged-odoo authored and sdegueldre committed Jul 20, 2022
1 parent 9fd662f commit f5d5273
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/runtime/component_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export class ComponentNode<P extends Props = any, E = any> implements VNode<Comp

renderFn: Function;
parent: ComponentNode | null;
level: number;
childEnv: Env;
children: { [key: string]: ComponentNode } = Object.create(null);
refs: any = {};
Expand All @@ -108,7 +107,6 @@ export class ComponentNode<P extends Props = any, E = any> implements VNode<Comp
this.parent = parent;
this.props = props;
this.parentKey = parentKey;
this.level = parent ? parent.level + 1 : 0;
const defaultProps = C.defaultProps;
props = Object.assign({}, props);
if (defaultProps) {
Expand Down

0 comments on commit f5d5273

Please sign in to comment.