angular-ui / ui-calendar

A complete AngularJS directive for the Arshaw FullCalendar.
http://angular-ui.github.io/ui-calendar/
MIT License
1.49k stars 729 forks source link

$scope.uiConfig.calendar.events handler is called twice when event occurs #299

Open erkanarslan opened 9 years ago

erkanarslan commented 9 years ago

I have assigned a custom handler to $scope.uiConfig.calendar.events parameter. When calendar is loaded or current month is changed via left or right button the handler called twice.

erkanarslan commented 9 years ago

While searching through demo file I saw that adding handler to $scope.eventSources instead of registering it to calendar.events make it work correctly.