mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-11 11:25:34 +00:00
fix(web): post-rebase fix - accidental multi-constructor
This commit is contained in:
parent
3f49defb2f
commit
ac4a847a2d
1 changed files with 10 additions and 12 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue