I'm usually against circular dependencies.. - I was thinking in maybe a public property `Alarm.database`.. I think the only place you would need to set it would be on `js/panels/alarm_edit/main.js` (so it should not make things more complex)

In these cases I usually dispatch events and would let the mediator (AlarmEdit) execute the call to `alarmDatabase`, but in this case since we need the callback and it's calling a "private" method, I think the injection would be a good solution.

what do you think?