Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

When `self._sel` is an empty array, `self.blackout()` always returns …

…false.

Fixed ChiperSoft/Kalendae#69
  • Loading branch information...
commit d82213c4921ca0c1b7e446c14c320119a034b1cc 1 parent d90b8ee
@aratak aratak 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.