diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/Label.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/Label.js b/ui/Label.js index d1b3098..f2cd405 100644 --- a/ui/Label.js +++ b/ui/Label.js @@ -44,4 +44,9 @@ module.exports = class Label extends DisplayElement { get text() { return this.getDep('text') } + + // Kinda bad, but works as long as you're overwriting the array instead of + // mutating it. + set textAttributes(val) { return this.setDep('textAttributes', val) } + get textAttributes() { return this.getDep('textAttributes') } } |