forked from MapComplete/MapComplete
Autoreformat all the things
This commit is contained in:
parent
bfcbbdaf70
commit
25f956c808
309 changed files with 548 additions and 556 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue