SVGHMI: Fix browser side exception when some widget are not used, and are then discarded and not present in final SVG. In that case JS code was still making reference to discarded widget elements and was raising exception at init.
--- a/svghmi/widgets_common.ysl2 Tue Jan 26 11:14:22 2021 +0100
+++ b/svghmi/widgets_common.ysl2 Tue Jan 26 11:17:08 2021 +0100
@@ -289,7 +289,7 @@
||
const "excluded_types", "str:split('Page Lang VarInit')";
-const "included_ids","$parsed_widgets/widget[not(@type = $excluded_types)]/@id";
+const "included_ids","$parsed_widgets/widget[not(@type = $excluded_types) and not(@id = $discardable_elements/@id)]/@id";
emit "declarations:hmi-elements" {
| var hmi_widgets = {