mirror of
https://github.com/node-red/node-red
synced 2024-11-23 00:52:33 +00:00
e1f2e0656b
This fixes an issue when RED.events.off(..) is called in a RED.events.on(..) callback: ``` let cb = () => { RED.events.off("event-name", cb) .... } RED.events.on("event-name", cb) ``` This pattern emulates a once(..), i.e., execute a callback once-only for an event. Discussed in [Forum](https://discourse.nodered.org/t/event-offing-an-on-event-to-perform-only-once/83726) |
||
---|---|---|
.. | ||
@node-red | ||
node-red |