diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/Label.js | 5 |
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') } } |