diff --git a/web/static/src/ts/core/Widget.ts b/web/static/src/ts/core/Widget.ts index d9f20658..298331d6 100644 --- a/web/static/src/ts/core/Widget.ts +++ b/web/static/src/ts/core/Widget.ts @@ -4,8 +4,9 @@ import { init } from "../../../libs/snabbdom/src/snabbdom"; import { VNode } from "../../../libs/snabbdom/src/vnode"; import { QWeb } from "./qweb_vdom"; -const patch = init([sdListeners, sdAttrs]); - +//------------------------------------------------------------------------------ +// Types/helpers +//------------------------------------------------------------------------------ export interface WEnv { qweb: QWeb; getID(): number; @@ -26,6 +27,11 @@ interface Meta { children: { [key: number]: Widget }; } +const patch = init([sdListeners, sdAttrs]); + +//------------------------------------------------------------------------------ +// Widget +//------------------------------------------------------------------------------ export class Widget { __widget__: Meta; name: string = "widget";