From faab576e85baf787c44a67640282ba146a874ef5 Mon Sep 17 00:00:00 2001 From: Florrie Date: Mon, 23 Sep 2019 05:56:02 -0300 Subject: Make textAttributes a draw dependency --- ui/Label.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui') 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') } } -- cgit 1.3.0-6-gf8a5