diff -r c0ea5015e46f -r 895d3f2b1786 svghmi/widgets_common.ysl2 --- a/svghmi/widgets_common.ysl2 Mon May 11 11:33:00 2020 +0200 +++ b/svghmi/widgets_common.ysl2 Wed May 13 18:26:38 2020 +0200 @@ -66,12 +66,14 @@ || class Widget { constructor(elt_id,args,indexes,members){ + this.element_id = elt_id; this.element = id(elt_id); this.args = args; this.indexes = indexes; this.offset = 0; Object.keys(members).forEach(prop => this[prop]=members[prop]); } + unsub(){ /* remove subsribers */ for(let index of this.indexes){