fix(web): post-rebase fix - accidental multi-constructor

This commit is contained in:
Joshua A. Horton 2023-04-25 14:59:42 +07:00
parent 3f49defb2f
commit ac4a847a2d

View file

@ -83,9 +83,18 @@ export default class ContextManager extends ContextManagerBase<BrowserConfigurat
readonly focusAssistant = new FocusAssistant();
readonly page: PageContextAttachment;
constructor(engineConfig: BrowserConfiguration) {
private mostRecentTarget: OutputTarget<any>;
private currentTarget: OutputTarget<any>;
private globalKeyboard: {keyboard: Keyboard, metadata: KeyboardStub};
private _eventsObj: () => LegacyEventEmitter<LegacyAPIEvents>;
constructor(engineConfig: BrowserConfiguration, eventsClosure: () => LegacyEventEmitter<LegacyAPIEvents>) {
super(engineConfig);
this._eventsObj = eventsClosure;
this.page = new PageContextAttachment(window.document, {
hostDevice: this.config.hostDevice,
isTopLevel: true
@ -99,17 +108,6 @@ export default class ContextManager extends ContextManagerBase<BrowserConfigurat
});
}
private mostRecentTarget: OutputTarget<any>;
private currentTarget: OutputTarget<any>;
private globalKeyboard: {keyboard: Keyboard, metadata: KeyboardStub};
private _eventsObj: () => LegacyEventEmitter<LegacyAPIEvents>;
constructor(engineConfig: BrowserConfiguration, eventsClosure: () => LegacyEventEmitter<LegacyAPIEvents>) {
super(engineConfig);
}
get apiEvents(): LegacyEventEmitter<LegacyAPIEvents> {
return this._eventsObj();
}