Cleans any event channel created on the given target. Un-registers any event listener.
the channel object.
// object as event channelconst channel = {};// connect to event "changed"on(channel, "changed", (msg)=> console.log(msg));// clean channelcleanup(channel);// the listener registered by on will never receive events. Copy
// object as event channelconst channel = {};// connect to event "changed"on(channel, "changed", (msg)=> console.log(msg));// clean channelcleanup(channel);// the listener registered by on will never receive events.
Cleans any event channel created on the given target. Un-registers any event listener.