From 724b059a738296961dd2af9a0b639ef1a5421ddc Mon Sep 17 00:00:00 2001 From: Matt Ross Date: Mon, 16 Sep 2013 13:12:00 -0400 Subject: [PATCH] Allow resources to be set via function --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }