--- a/svghmi/widgets_common.ysl2 Sun Feb 14 05:30:29 2021 +0100
+++ b/svghmi/widgets_common.ysl2 Sun Feb 14 19:15:20 2021 +0100
@@ -65,6 +65,7 @@
emit "preamble:local-variable-indexes" {
||
+
let hmi_locals = {};
var last_remote_index = hmitree_types.length - 1;
var next_available_index = hmitree_types.length;
@@ -95,6 +96,7 @@
]);
var persistent_indexes = new Map();
var cache = hmitree_types.map(_ignored => undefined);
+ var updates = {};
function page_local_index(varname, pagename){
let pagevars = hmi_locals[pagename];
@@ -155,11 +157,11 @@
if(!this.unsubscribable)
for(let i = 0; i < this.indexes.length; i++) {
/* flush updates pending because of inhibition */
- let inhibition = this.inhibit[index];
+ let inhibition = this.inhibit[i];
if(inhibition != undefined){
clearTimeout(inhibition);
- this.lastapply[index] = undefined;
- this.unhinibit(index);
+ this.lastapply[i] = undefined;
+ this.unhinibit(i);
}
let index = this.indexes[i];
if(this.relativeness[i])