function registerEvents(TipoDesafio) {
  for(var e in events) {
    let event = events[e];
    TipoDesafio.post(e, emitEvent(event));
  }
}
// Register the event emitter to the model events
Register the event emitter to the model events
Register the event emitter to the model events
function registerEvents(TipoDesafio) {
  for(var e in events) {
    let event = events[e];
    TipoDesafio.post(e, emitEvent(event));
  }
}
function registerEvents ( TipoDesafio ) { for ( var e in events ) { let event = events [ e ] ; TipoDesafio . post ( e , emitEvent ( event ) ) ; } }
Register the event emitter to the model events
Register the event emitter to the model events