use undefined min or max attribute as empty string - jscancer - Javascript crap (relatively small)
HTML git clone git://git.codemadness.org/jscancer
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit d1a071cccc5a23c1a3a48f826b7e44c1abd53268
DIR parent 2dc2ff65e8d107b5c47a30036797cbbdec01386e
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 1 Jun 2017 19:53:27 +0200
use undefined min or max attribute as empty string
Diffstat:
M datepicker/datepicker.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/datepicker/datepicker.js b/datepicker/datepicker.js
@@ -9,7 +9,7 @@ function datepicker_init(input) {
var datepicker_isoweekdate = true;
var parsedateutc = function(s) {
- var l = s.split("-"), d;
+ var l = (s || "").split("-"), d;
if (l.length < 3)
return NaN;
d = new Date(l[0], parseInt(l[1]) - 1, l[2], 0, 0, 0);