Closed aratak closed 11 years ago
I think, that blackout function should be without an empty array condition.
blackout
I can't understand why this condition was present, so could you explain why you validate length of _sel array.
_sel
self.blackout = function (input) { input = moment(input).yearDay(); if (input < 1 || !self._sel /* || self._sel.length < 1 */) return false; var i = bdates.length; while (i--) if (bdates[i].yearDay() === input) return true; return false; }
See an example on jsfiddle: http://jsfiddle.net/nMwEf/5/
I must have had a reason for it, but I don't remember what it was. PR accepted
I think, that
blackout
function should be without an empty array condition.I can't understand why this condition was present, so could you explain why you validate length of
_sel
array.See an example on jsfiddle: http://jsfiddle.net/nMwEf/5/