Use createInstance on service hungry objects

This commit is contained in:
Daniel Imms
2019-07-13 22:56:54 -07:00
parent 88c88f1141
commit 9315b50897
4 changed files with 13 additions and 16 deletions
+4 -4
View File
@@ -37,10 +37,10 @@ export class CompositionHelper {
constructor(
private readonly _textarea: HTMLTextAreaElement,
private readonly _compositionView: HTMLElement,
private readonly _bufferService: IBufferService,
private readonly _optionsService: IOptionsService,
private readonly _charSizeService: ICharSizeService,
private readonly _coreService: ICoreService
@IBufferService private readonly _bufferService: IBufferService,
@IOptionsService private readonly _optionsService: IOptionsService,
@ICharSizeService private readonly _charSizeService: ICharSizeService,
@ICoreService private readonly _coreService: ICoreService
) {
this._isComposing = false;
this._isSendingComposition = false;