lib/topologies/replset.js
function emitSDAMEvent(self, event, description) {
  if (self.listeners(event).length > 0) {
    self.emit(event, description);
  }
}
function emitSDAMEvent(self, event, description) {
  if (self.listeners(event).length > 0) {
    self.emit(event, description);
  }
}
function emitSDAMEvent ( self , event , description ) { if ( self . listeners ( event ) . length > 0 ) { self . emit ( event , description ) ; } }
Emit event if it exists
@method
Emit event if it exists