jscancer

Javascript crap (relatively small)
git clone git://git.codemadness.org/jscancer
Log | Files | Refs | README | LICENSE

commit d1a071cccc5a23c1a3a48f826b7e44c1abd53268
parent 2dc2ff65e8d107b5c47a30036797cbbdec01386e
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:
Mdatepicker/datepicker.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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);