Merge pull request #934 from eouia/develop

add symbol and color on broadcasted events
This commit is contained in:
Michael Teeuw 2017-07-12 10:54:59 +02:00 committed by GitHub
commit d7fe36de71
2 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Changed
### Added
- Add symbol and color properties of event when `CALENDAR_EVENTS` notification is broadcasted from `default/calendar` module.
### Updated
### Fixed

View File

@ -522,6 +522,8 @@ Module.register("calendar", {
var calendar = this.calendarData[url];
for (var e in calendar) {
var event = cloneObject(calendar[e]);
event.symbol = this.symbolsForUrl(url);
event.color = this.colorForUrl(url);
delete event.url;
eventList.push(event);
}