diff --git a/src/calendar.js b/src/calendar.js index 7078cfb..47a4dd0 100644 --- a/src/calendar.js +++ b/src/calendar.js @@ -156,9 +156,9 @@ angular.module('ui.calendar', []) angular.extend(config, uiCalendarConfig); angular.extend(config, calendarSettings); - + angular.forEach(config, function(value,key){ - if (typeof value === 'function'){ + if (typeof value === 'function' && ['eventDataTransform', 'eventClick'].indexOf(key) === -1){ config[key] = wrapFunctionWithScopeApply(config[key]); } }); @@ -264,4 +264,4 @@ angular.module('ui.calendar', []) }); } }; -}]); \ No newline at end of file +}]);