src/Core/Stores/ListenerRegistry.js
/**
     * Unregister a Listener from the ListenerRegistry
     *
     * @param {String} label - The listener label
     * @param {Listener} [listener=null] - The listener object
     * @memberof ListenerRegistry
     */
Unregister a Listener from the ListenerRegistry
@param {String} label - The listener label
@param {Listener} [listener=null] - The listener object
@memberof ListenerRegistry
Unregister a Listener from the ListenerRegistry @param { String } label - The listener label @param { Listener } [ listener = null ] - The listener object @memberof ListenerRegistry
unregister(label, listener = null) {
        if (!listener) {
            listener = this.get(label);
        }
        if (!listener) {
            throw new AxonError(`Unregister [${label}]: Not registered!`, 'LISTENER-REGISTRY', listener.module.label);
        }
        this.remove(label);
        this.axon.eventManager.unregisterListener(listener.eventName, listener.label);
        this.axon.logger.info(`[EVT] => Unregistered: [${listener.module.label}(${label})] for ${listener.eventName}`);
    }
unregister ( label , listener = null ) { if ( ! listener ) { listener = this . get ( label ) ; } if ( ! listener ) { throw new AxonError ( ` ${ label } ` , 'LISTENER-REGISTRY' , listener . module . label ) ; } this . remove ( label ) ; this . axon . eventManager . unregisterListener ( listener . eventName , listener . label ) ; this . axon . logger . info ( ` ${ listener . module . label } ${ label } ${ listener . eventName } ` ) ; }
Unregister a Listener from the ListenerRegistry
 @param {String} label - The listener label
 @param {Listener} [listener=null] - The listener object
 @memberof ListenerRegistry
Unregister a Listener from the ListenerRegistry @param { String } label - The listener label @param { Listener } [ listener = null ] - The listener object @memberof ListenerRegistry