From 2bd0719b9a0d6b1851334af1ab08ce48ee6a3f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 25 Apr 2019 17:10:36 +0200 Subject: [PATCH] [REF] component, vdom: small cleanup --- src/component.ts | 5 ++--- src/vdom.ts | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/component.ts b/src/component.ts index e17ce15e..4aabea2f 100644 --- a/src/component.ts +++ b/src/component.ts @@ -3,7 +3,6 @@ import { Observer } from "./observer"; import { QWeb } from "./qweb"; import { h, patch, VNode } from "./vdom"; - //------------------------------------------------------------------------------ // Types/helpers //------------------------------------------------------------------------------ @@ -12,7 +11,7 @@ export interface Env { qweb: QWeb; } -export interface Meta { +interface Meta { readonly id: number; vnode: VNode | null; isStarted: boolean; @@ -155,7 +154,7 @@ export class Component< * It is not called on the initial render. This is useful to get some * information which are in the DOM. For example, the current position of the * scrollbar - * + * * The return value of willPatch will be given to the patched function. */ willPatch(): any {} diff --git a/src/vdom.ts b/src/vdom.ts index 197aabe8..661b7caa 100644 --- a/src/vdom.ts +++ b/src/vdom.ts @@ -28,8 +28,6 @@ interface VNodeData { hook?: Hooks; key?: Key; ns?: string; // for SVGs - fn?: () => VNode; // for thunks - args?: Array; // for thunks [key: string]: any; // for any other 3rd party module }