Introduction
Introduction Statistics Contact Development Disclaimer Help
use undefined min or max attribute as empty string - jscancer - Javascript crap…
git clone git://git.codemadness.org/jscancer
Log
Files
Refs
README
LICENSE
---
commit d1a071cccc5a23c1a3a48f826b7e44c1abd53268
parent 2dc2ff65e8d107b5c47a30036797cbbdec01386e
Author: Hiltjo Posthuma <[email protected]>
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(-)
---
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);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.