diff --git a/src/main.js b/src/main.js index 5ff207a7d8..b8a43bbea7 100644 --- a/src/main.js +++ b/src/main.js @@ -40,7 +40,7 @@ $.fn.fullCalendar = function(options) { var eventResources = options.eventResources || []; delete options.eventResources; if (options.resources) { - eventResources = options.resources; + eventResources = (typeof(options.resources) == 'function' ? options.resources() : options.resources); delete options.resources; }