mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
remove memory leak...
This commit is contained in:
@@ -17,9 +17,6 @@ export interface Env {
|
|||||||
qweb: QWeb;
|
qweb: QWeb;
|
||||||
}
|
}
|
||||||
|
|
||||||
let wl: any[] = [];
|
|
||||||
(<any>window).wl = wl;
|
|
||||||
|
|
||||||
export interface Meta<T extends Env, Props> {
|
export interface Meta<T extends Env, Props> {
|
||||||
readonly id: number;
|
readonly id: number;
|
||||||
vnode: VNode | null;
|
vnode: VNode | null;
|
||||||
@@ -74,7 +71,6 @@ export class Component<
|
|||||||
|
|
||||||
constructor(parent: Component<T, any, any> | T, props?: Props) {
|
constructor(parent: Component<T, any, any> | T, props?: Props) {
|
||||||
super();
|
super();
|
||||||
wl.push(this);
|
|
||||||
|
|
||||||
// is this a good idea?
|
// is this a good idea?
|
||||||
// Pro: if props is empty, we can create easily a widget
|
// Pro: if props is empty, we can create easily a widget
|
||||||
|
|||||||
Reference in New Issue
Block a user