mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 11:55:01 +03:00
parent
a547ae4b68
commit
87d644ef88
@ -12,8 +12,6 @@ import {ModelToDomainEventInterceptor} from '../src';
|
||||
|
||||
class EventRegistry extends events.EventEmitter {
|
||||
hasRegisteredListener(eventName: string, listenerName: string) {
|
||||
// console.log(this.listeners(eventName));
|
||||
// console.log('checking for: ', listenerName);
|
||||
return !!(this.listeners(eventName).find(listener => (listener.name === listenerName)));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user