branch | svghmi |
changeset 2958 | 895d3f2b1786 |
parent 2955 | 64e603b84aa3 |
child 2963 | 113e2f2e324d |
--- 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){