Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

When `self._sel` is an empty array, `self.blackout()` always returns false #71

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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;
Something went wrong with that request. Please try again.