# HG changeset patch # User Edouard Tisserant # Date 1667555579 -3600 # Node ID 6b7f15089703eece382ca972d172794ca55f0770 # Parent d5ff60e906b065e6d1f91312375bcbd7062acee7 SVGHMI: cosmetic fix in Back widget 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); } ||