Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static unregister(obj) {
if (obj.subscription)
postal.unsubscribe(obj.subscription);
delete obj.subscription;
delete obj.actions;
delete obj.sendMsg;
delete obj.onMsg;
delete obj.forgetMsg;
delete obj.retriggerMsg;
}