--- a/svghmi/svghmi.js Mon Sep 12 11:56:52 2022 +0200
+++ b/svghmi/svghmi.js Tue Sep 13 16:29:21 2022 +0200
@@ -1,7 +1,5 @@
-var need_cache_apply = [];
function dispatch_value(index, value) {
let widgets = subscribers(index);
@@ -86,10 +84,6 @@
- while(widget = need_cache_apply.pop()){
if(jumps_need_update) update_jumps();
--- a/svghmi/widget_foreach.ysl2 Mon Sep 12 11:56:52 2022 +0200
+++ b/svghmi/widget_foreach.ysl2 Tue Sep 13 16:29:21 2022 +0200
@@ -140,7 +140,7 @@
- need_cache_apply.push(this);
jumps_need_update = true;
--- a/svghmi/widgets_common.ysl2 Mon Sep 12 11:56:52 2022 +0200
+++ b/svghmi/widgets_common.ysl2 Tue Sep 13 16:29:21 2022 +0200
@@ -343,9 +343,7 @@
this.lastdispatch[i] = undefined;
- let index = this.indexes[i];
- if(this.relativeness[i])
+ let index = this.get_variable_index(i); subscribers(index).delete(this);
@@ -362,17 +360,17 @@
if(index == undefined) continue;
subscribers(index).add(this);
- need_cache_apply.push(this);
- for(let index in this.indexes){
+ for(let i = 0; i < this.indexes_length; i++) { /* dispatch current cache in newly opened page widgets */
- let realindex = this.get_variable_index(index);
+ let realindex = this.get_variable_index(i); if(realindex == undefined) continue;
let cached_val = cache[realindex];
if(cached_val != undefined)
- this.feed_data_for_dispatch(cached_val, cached_val, index);
+ this.feed_data_for_dispatch(cached_val, cached_val, i);