aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/frontend/html/util/component.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/frontend/html/util/component.js')
-rw-r--r--src/zenserver/frontend/html/util/component.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zenserver/frontend/html/util/component.js b/src/zenserver/frontend/html/util/component.js
index 3c4780d77..830c6989a 100644
--- a/src/zenserver/frontend/html/util/component.js
+++ b/src/zenserver/frontend/html/util/component.js
@@ -71,6 +71,9 @@ class ComponentDom extends ComponentBase
text(value)
{
+ if (value != undefined && typeof value.tag === "function")
+ this.tag(value.tag())
+
value = (value == undefined) ? "undefined" : value.toString();
this._element.textContent = (value != "") ? value : "";
return this;