Dependency Injection prototype

This commit is contained in:
Daniel Imms
2019-07-13 19:50:16 -07:00
parent c078f3db48
commit 21fbe25858
10 changed files with 160 additions and 15 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export class BufferService implements IBufferService {
public get buffer(): IBuffer { return this.buffers.active; }
constructor(
private _optionsService: IOptionsService
@IOptionsService private _optionsService: IOptionsService
) {
this.cols = Math.max(_optionsService.options.cols, MINIMUM_COLS);
this.rows = Math.max(_optionsService.options.rows, MINIMUM_ROWS);