« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/Label.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/Label.js b/ui/Label.js
index e320574..d1b3098 100644
--- a/ui/Label.js
+++ b/ui/Label.js
@@ -36,11 +36,12 @@ module.exports = class Label extends DisplayElement {
   }
 
   set text(newText) {
-    this._text = newText
+    const ret = this.setDep('text', newText)
     this.fixLayout()
+    return ret
   }
 
   get text() {
-    return this._text
+    return this.getDep('text')
   }
 }