Autoreformat all the things

This commit is contained in:
Pieter Vander Vennet 2022-01-18 18:52:42 +01:00
parent bfcbbdaf70
commit 25f956c808
309 changed files with 548 additions and 556 deletions

View file

@ -9,7 +9,7 @@ export class VariableUiElement extends BaseUIElement {
super();
this._contents = contents;
}
Destroy() {
super.Destroy();
this.isDestroyed = true;
@ -19,7 +19,7 @@ export class VariableUiElement extends BaseUIElement {
const el = document.createElement("span");
const self = this;
this._contents.addCallbackAndRun((contents) => {
if(self.isDestroyed){
if (self.isDestroyed) {
return true;
}
while (el.firstChild) {
@ -47,13 +47,13 @@ export class VariableUiElement extends BaseUIElement {
});
return el;
}
AsMarkdown(): string {
const d = this._contents.data;
if(typeof d === "string"){
if (typeof d === "string") {
return d;
}
if(d instanceof BaseUIElement){
if (d instanceof BaseUIElement) {
return d.AsMarkdown()
}
return new Combine(<BaseUIElement[]>d).AsMarkdown()