diff options
author | Florrie <towerofnix@gmail.com> | 2019-09-15 17:23:10 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2019-09-15 17:23:10 -0300 |
commit | d8943db70aab7e7192040caaf0bbf02d5ddf429c (patch) | |
tree | 0c09780604adb81c3642c0c6c46d06cebb0f58b9 /ui | |
parent | 3f76094c554c23ee3519f41458a04d348f4f75a3 (diff) |
Remove dead todo comment
Diffstat (limited to 'ui')
-rw-r--r-- | ui/DisplayElement.js | 1 |
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() |