« 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
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/DisplayElement.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui/DisplayElement.js b/ui/DisplayElement.js
index 87a9cb5..b27772e 100644
--- a/ui/DisplayElement.js
+++ b/ui/DisplayElement.js
@@ -92,7 +92,6 @@ module.exports = class DisplayElement extends EventEmitter {
 
   setDep(key, value) {
     const oldValue = this[DisplayElement.drawValues][key]
-    // TODO: new map for old values. we only compare value !== oldValue LATER, at render time, not when choosing to schedule - otherwise intermediate sets e.g. f.y = 1; f.y++, which always has a net effect of f.y = 2, will count as a redraw even though the final value isn't changing between frames
     if (value !== this[DisplayElement.drawValues][key]) {
       this[DisplayElement.drawValues][key] = value
       this.scheduleDraw()