diff options
author | Florrie <towerofnix@gmail.com> | 2018-05-31 00:00:45 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-05-31 00:00:45 -0300 |
commit | f2676294c95695e2de3a7fb88eafae76d6827618 (patch) | |
tree | df80695b3e35bda8e40f5dccc7f21fb8875e7f76 /ui/DisplayElement.js | |
parent | 553bbf486e043f206bb8f2c92c943fd688f8fedc (diff) |
Let-const nitpicks
Diffstat (limited to 'ui/DisplayElement.js')
-rw-r--r-- | ui/DisplayElement.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/DisplayElement.js b/ui/DisplayElement.js index 3a97ed9..75263ac 100644 --- a/ui/DisplayElement.js +++ b/ui/DisplayElement.js @@ -64,7 +64,7 @@ module.exports = class DisplayElement extends EventEmitter { // Runs fixLayout on this as well as all children. this.fixLayout() - for (let child of this.children) { + for (const child of this.children) { child.fixAllLayout() } } @@ -72,7 +72,7 @@ module.exports = class DisplayElement extends EventEmitter { drawChildrenTo(writable) { // Draws all of the children to a writable. - for (let child of this.children) { + for (const child of this.children) { child.renderTo(writable) } } |