svghmi/widgets_common.ysl2
changeset 3417 9b9775d230f5
parent 3412 04c4835ca376
child 3452 a0bd2c4cb8f7
--- a/svghmi/widgets_common.ysl2	Wed Jan 19 08:56:16 2022 +0100
+++ b/svghmi/widgets_common.ysl2	Wed Jan 19 11:41:04 2022 +0100
@@ -174,7 +174,6 @@
         constructor(elt_id, freq, args, indexes, minmaxes, members){
             this.element_id = elt_id;
             this.element = id(elt_id);
-            if(freq !== undefined) this.frequency = freq;
             this.args = args;
             this.indexes = indexes;
             this.minmaxes = minmaxes;
@@ -183,6 +182,7 @@
             this.inhibit = indexes.map(() => undefined);
             this.pending = indexes.map(() => undefined);
             this.bound_unhinibit = this.unhinibit.bind(this);
+            this.forced_frequency = freq;
         }
 
         unsub(){