Skip to content

Commit 5fd9353

Browse files
committed
fixes logic typo
1 parent ac4837f commit 5fd9353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/jquery.fn.gantt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,9 +1640,9 @@
16401640

16411641
// Returns true when the given date appears in the array of holidays, if provided
16421642
//TODO: test this! -UA
1643-
isHoliday: (function() {
1643+
isHoliday: (function() { // IIFE
16441644
// short-circuits the function if no holidays option was passed
1645-
if (settings.holidays) {
1645+
if (!settings.holidays) {
16461646
return function () { return false; };
16471647
}
16481648
// normalizes holidays into millisecond values (limiting scope to just this function)

0 commit comments

Comments
 (0)