From ce6431b603237ba033d60fa6c8095629b1cc3c46 Mon Sep 17 00:00:00 2001 From: ralphwetzel Date: Mon, 16 Oct 2023 22:26:36 +0200 Subject: [PATCH] First try of 'onremove' --- mcu_plugin.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mcu_plugin.html b/mcu_plugin.html index 893a9b8..b1ec07f 100644 --- a/mcu_plugin.html +++ b/mcu_plugin.html @@ -511,6 +511,15 @@ }) return; + }, + + onremove: function() { + RED.events.off("flows:add", onFlowAdd) + RED.events.off("flows:remove", onObjectRemove) + RED.events.off("flows:change", onFlowChange) + RED.events.off("flows:reorder", onFlowsReorder) + + RED.sidebar.removeTab("node-red-mcu"); } })