07.03.2023, 11:38
(07.03.2023, 10:57)admin Wrote: Same arguments as for grp.listen:
Code:function removelistenerfn(addr, fn) {
var id = Scada.encodeGroupAddress(addr);
var listeners = objectStore.listeners[ id ] || [];
$.each(listeners, function(index, listener) {
if (listener.fn == fn) {
listeners.splice(index, 1);
}
});
}
And what do i have to put in "fn". When I close the widget I need to remove the listener that I´ve created when I open it.
Thanks