@Screwyoudriver OK makes sense. I thought about some module like this as well.
BTW: Another workaround would be to fetch the notification that is distributed by calendar:
broadcastEvents: function () {
var eventList = [];
for (var url in this.calendarData) {
var calendar = this.calendarData[url];
for (var e in calendar) {
var event = cloneObject(calendar[e]);
event.symbol = this.symbolsForUrl(url);
event.calendarName = this.calendarNameForUrl(url);
event.color = this.colorForUrl(url);
delete event.url;
eventList.push(event);
}
}
eventList.sort(function(a,b) {
return a.startDate - b.startDate;
});
this.sendNotification("CALENDAR_EVENTS", eventList);
}
calendar could do the conversion work for the trash module, and the trash module could just fetch and filter the events for trash-related ones.