forked from MapComplete/MapComplete
Full, interactive i18n (still some quests to enable it though)
This commit is contained in:
parent
fd6f77c98e
commit
0f2dff8f41
15 changed files with 205 additions and 90 deletions
|
@ -13,10 +13,6 @@ export abstract class UIElement {
|
|||
this.id = "ui-element-" + UIElement.nextId;
|
||||
this._source = source;
|
||||
UIElement.nextId++;
|
||||
if (UIElement.nextId % 100 == 0) {
|
||||
|
||||
console.log(UIElement.nextId)
|
||||
}
|
||||
this.ListenTo(source);
|
||||
}
|
||||
|
||||
|
@ -97,8 +93,7 @@ export abstract class UIElement {
|
|||
AttachTo(divId: string) {
|
||||
let element = document.getElementById(divId);
|
||||
if (element === null) {
|
||||
console.log("SEVERE: could not attach UIElement to ", divId);
|
||||
return;
|
||||
throw "SEVERE: could not attach UIElement to " + divId;
|
||||
}
|
||||
element.innerHTML = this.Render();
|
||||
this.Update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue