« 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/DisplayElement.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/DisplayElement.js')
-rw-r--r--ui/DisplayElement.js4
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)
     }
   }