Skip to content

Commit 09c79b9

Browse files
committed
fix timing of call
1 parent 5e4deee commit 09c79b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/jquery.fn.gantt.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,9 +1653,12 @@
16531653
if (!settings.holidays) {
16541654
return function () { return false; };
16551655
}
1656-
var holidays = tools._datesToDays( settings.holidays );
1656+
var holidays = false;
16571657
// returns the function that will be used to check for holidayness of a given date
16581658
return function(date) {
1659+
if (!holidays) {
1660+
holidays = tools._datesToDays( settings.holidays );
1661+
}
16591662
return !!holidays[
16601663
$.isNumeric(date) ?
16611664
date :

0 commit comments

Comments
 (0)