SVGHMI: nasty scope shadowing bug... was making funny recursion, leading to really slow interaction.
authorEdouard Tisserant
Wed, 15 Jun 2022 11:43:51 +0200
changeset 3516 d3cf85a3c282
parent 3515 b90a0acc8c4e
child 3517 dacf329abdd9
SVGHMI: nasty scope shadowing bug... was making funny recursion, leading to really slow interaction.
svghmi/widget_switch.ysl2
--- a/svghmi/widget_switch.ysl2	Wed Jun 15 11:41:59 2022 +0200
+++ b/svghmi/widget_switch.ysl2	Wed Jun 15 11:43:51 2022 +0200
@@ -26,7 +26,7 @@
         current_value = undefined;
 
         init(){
-            animate();
+            this.animate();
         }
 
         dispatch(value) {