diff options
| author | rr- | 2016-08-27 22:15:30 +0200 |
|---|---|---|
| committer | rr- | 2016-08-27 22:19:01 +0200 |
| commit | 9dc438c391d17d4db66737e60f2d0ba6a2a2aac6 (patch) | |
| tree | 943e6594132044d44300dbda1b19f12c658b0007 /client | |
| parent | 63ec28ddb31435c61e62b2d37910680b82e96f8e (diff) | |
client/expanders: fix setting empty expander title
Diffstat (limited to 'client')
| -rw-r--r-- | client/js/controls/expander_control.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/js/controls/expander_control.js b/client/js/controls/expander_control.js index a07367a..beb0e69 100644 --- a/client/js/controls/expander_control.js +++ b/client/js/controls/expander_control.js @@ -40,7 +40,11 @@ class ExpanderControl { } set title(newTitle) { - this._expanderNode.querySelector('header span').textContent = newTitle; + if (this._expanderNode) { + this._expanderNode + .querySelector('header span') + .textContent = newTitle; + } } get _isOpened() { |