# HG changeset patch
# User Edouard Tisserant <edouard.tisserant@gmail.com>
# Date 1584374963 -3600
# Node ID ed9b16b336287c4573ba3eef7be86a36898736d8
# Parent  634b43d69897278f15f4efab76c1327b7fd5be38
SVGHMI: Re-enable dispatch to arrays of functions in case of multiple suscription per widget. Still unused, but disabled for reasons not any more true.

diff -r 634b43d69897 -r ed9b16b33628 svghmi/svghmi.js
--- a/svghmi/svghmi.js	Fri Mar 13 21:42:40 2020 +0100
+++ b/svghmi/svghmi.js	Mon Mar 16 17:09:23 2020 +0100
@@ -12,11 +12,9 @@
         if(typeof(d) == "function" && idxidx == 0){
             d.call(widget, value, oldval);
         }
-        /* TODO deal with multiple paths
-           and dispatch according to index+page_offset */
-        /*else if(typeof(d) == "object" && d.length >= idxidx){
+        else if(typeof(d) == "object" && d.length >= idxidx){
             d[idxidx].call(widget, value, oldval);
-        }*/
+        }
         /* else dispatch_0, ..., dispatch_n ? */
         /*else {
             throw new Error("Dunno how to dispatch to widget at index = " + index);