mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-01 23:36:46 +08:00
parent
84e2cdf22d
commit
abcac71826
@ -37,7 +37,7 @@ class Node extends EventEmitter {
|
|||||||
public style?: {
|
public style?: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
};
|
||||||
public events?: DeprecatedEventConfig[] | EventConfig[];
|
public events: DeprecatedEventConfig[] | EventConfig[];
|
||||||
public instance?: any;
|
public instance?: any;
|
||||||
public page?: Page;
|
public page?: Page;
|
||||||
public parent?: Node;
|
public parent?: Node;
|
||||||
@ -52,7 +52,7 @@ class Node extends EventEmitter {
|
|||||||
this.app = options.app;
|
this.app = options.app;
|
||||||
const { events } = options.config;
|
const { events } = options.config;
|
||||||
this.data = options.config;
|
this.data = options.config;
|
||||||
this.events = events;
|
this.events = events || [];
|
||||||
this.listenLifeSafe();
|
this.listenLifeSafe();
|
||||||
|
|
||||||
this.once('destroy', () => {
|
this.once('destroy', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user