Skip to content

Commit

Permalink
First try of 'onremove'
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphwetzel committed Oct 16, 2023
1 parent ad29de9 commit ce6431b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mcu_plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
})

Expand Down

0 comments on commit ce6431b

Please sign in to comment.