From b8dc1063d0aa8c30b346fdd8d7006c6a9e432098 Mon Sep 17 00:00:00 2001 From: Tobias Jordans Date: Thu, 30 Sep 2021 21:41:51 +0200 Subject: [PATCH] Refactoring: Random spaces / newline changes --- UI/BaseUIElement.ts | 5 ++--- UI/Input/FixedInputElement.ts | 4 +--- UI/Input/InputElement.ts | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/UI/BaseUIElement.ts b/UI/BaseUIElement.ts index 99462acbd..ff2d75b83 100644 --- a/UI/BaseUIElement.ts +++ b/UI/BaseUIElement.ts @@ -99,9 +99,8 @@ export default abstract class BaseUIElement { if (this.InnerConstructElement === undefined) { throw "ERROR! This is not a correct baseUIElement: " + this.constructor.name } + try { - - const el = this.InnerConstructElement(); if (el === undefined) { @@ -163,4 +162,4 @@ export default abstract class BaseUIElement { } protected abstract InnerConstructElement(): HTMLElement; -} \ No newline at end of file +} diff --git a/UI/Input/FixedInputElement.ts b/UI/Input/FixedInputElement.ts index d82f795d4..ee2e8d950 100644 --- a/UI/Input/FixedInputElement.ts +++ b/UI/Input/FixedInputElement.ts @@ -41,6 +41,4 @@ export class FixedInputElement extends InputElement { protected InnerConstructElement(): HTMLElement { return this._el; } - - -} \ No newline at end of file +} diff --git a/UI/Input/InputElement.ts b/UI/Input/InputElement.ts index aadc6d9ee..f9920b1d6 100644 --- a/UI/Input/InputElement.ts +++ b/UI/Input/InputElement.ts @@ -10,4 +10,3 @@ export abstract class InputElement extends BaseUIElement { abstract IsValid(t: T): boolean; } -