From d8943db70aab7e7192040caaf0bbf02d5ddf429c Mon Sep 17 00:00:00 2001 From: Florrie Date: Sun, 15 Sep 2019 17:23:10 -0300 Subject: Remove dead todo comment --- ui/DisplayElement.js | 1 - 1 file changed, 1 deletion(-) (limited to 'ui') 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() -- cgit 1.3.0-6-gf8a5