forked from MapComplete/MapComplete
More refactoring, stuff kindoff works
This commit is contained in:
parent
62f471df1e
commit
3943100e54
52 changed files with 635 additions and 1010 deletions
|
@ -21,6 +21,7 @@ export abstract class UIElement extends BaseUIElement{
|
|||
if (source === undefined) {
|
||||
return this;
|
||||
}
|
||||
console.trace("Got a listenTo in ", this.constructor.name)
|
||||
const self = this;
|
||||
source.addCallback(() => {
|
||||
self.lastInnerRender = undefined;
|
||||
|
@ -39,7 +40,7 @@ export abstract class UIElement extends BaseUIElement{
|
|||
}
|
||||
|
||||
Render(): string {
|
||||
return "Don't use Render!"
|
||||
return this.InnerRenderAsString()
|
||||
}
|
||||
|
||||
|
||||
|
@ -52,11 +53,6 @@ export abstract class UIElement extends BaseUIElement{
|
|||
return rendered
|
||||
}
|
||||
|
||||
public IsEmpty(): boolean {
|
||||
return this.InnerRender() === undefined || this.InnerRender() === "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Should be overridden for specific HTML functionality
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue