« get me outta code hell

Remove dead todo comment - 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:
authorFlorrie <towerofnix@gmail.com>2019-09-15 17:23:10 -0300
committerFlorrie <towerofnix@gmail.com>2019-09-15 17:23:10 -0300
commitd8943db70aab7e7192040caaf0bbf02d5ddf429c (patch)
tree0c09780604adb81c3642c0c6c46d06cebb0f58b9 /ui
parent3f76094c554c23ee3519f41458a04d348f4f75a3 (diff)
Remove dead todo comment
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()