fix(lifecycle-component): support 'once' option for event listeners
This commit is contained in:
@ -55,8 +55,8 @@ class TestComponent extends LifecycleComponent {
|
||||
return this.clearInterval(timer);
|
||||
}
|
||||
|
||||
public testAddEventListener(target: any, event: string, handler: Function): void {
|
||||
return this.addEventListener(target, event, handler);
|
||||
public testAddEventListener(target: any, event: string, handler: Function, options?: { once?: boolean }): void {
|
||||
return this.addEventListener(target, event, handler, options);
|
||||
}
|
||||
|
||||
public testIsShuttingDown(): boolean {
|
||||
|
Reference in New Issue
Block a user