We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac4837f commit 5fd9353Copy full SHA for 5fd9353
js/jquery.fn.gantt.js
@@ -1640,9 +1640,9 @@
1640
1641
// Returns true when the given date appears in the array of holidays, if provided
1642
//TODO: test this! -UA
1643
- isHoliday: (function() {
+ isHoliday: (function() { // IIFE
1644
// short-circuits the function if no holidays option was passed
1645
- if (settings.holidays) {
+ if (!settings.holidays) {
1646
return function () { return false; };
1647
}
1648
// normalizes holidays into millisecond values (limiting scope to just this function)
0 commit comments