diff -r d5ff60e906b0 -r 6b7f15089703 svghmi/widget_back.ysl2 --- a/svghmi/widget_back.ysl2 Fri Nov 04 10:51:45 2022 +0100 +++ b/svghmi/widget_back.ysl2 Fri Nov 04 10:52:59 2022 +0100 @@ -9,7 +9,6 @@ shortdesc > Jump to previous page } -// TODO: use es6 widget_class("Back") || on_click(evt) { @@ -24,6 +23,6 @@ } } init() { - this.element.setAttribute("onclick", "hmi_widgets['"+this.element_id+"'].on_click(evt)"); + this.element.onclick = this.on_click.bind(this); } ||