From 962d87442e67aa43a1533cc5fe8e3d6f514da883 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.comā©> Date: Wed, 11 Oct 2023 02:09:05 +0200 Subject: [PATCH] Slider: add `FIXME:` comment re error in callback --- modules/Slider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Slider.js b/modules/Slider.js index aea3cba04..198b2d0f8 100644 --- a/modules/Slider.js +++ b/modules/Slider.js @@ -131,7 +131,7 @@ try { // For making it possiblie to run the test app in the following catch stat } } if (o.v.level!==o.v.prevLevel || o.v.level===0 || o.v.level===o.c.steps) { - cb(o.v.cbObj.mode, o.v.cbObj.value); + cb(o.v.cbObj.mode, o.v.cbObj.value); // FIXME: Can cause error when using "incr" since it's not sure that o.v.cbObj has been initialized thanks to how the while-logic above works. (Can also do callback with faulty feedback since it didn't update) o.f.draw&&o.f.draw(o.v.level); } o.v.prevLevel = o.v.level;