Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #71 from aratak/sel-blackout-condition

When `self._sel` is an empty array, `self.blackout()` always returns false
  • Loading branch information...
commit 2a3e08dfb3685fb8db69b29bbce7f0600cd76c61 2 parents d90b8ee + d82213c
@ChiperSoft authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main.js
View
2  src/main.js
@@ -81,7 +81,7 @@ var Kalendae = function (targetElement, options) {
var bdates = parseDates(opts.blackout, opts.parseSplitDelimiter);
self.blackout = function (input) {
input = moment(input).yearDay();
- if (input < 1 || !self._sel || self._sel.length < 1) return false;
+ if (input < 1 || !self._sel) return false;
var i = bdates.length;
while (i--) if (bdates[i].yearDay() === input) return true;
return false;
Please sign in to comment.
Something went wrong with that request. Please try again.