faster
This commit is contained in:
parent
464fcf6971
commit
3fd702d72e
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ Ox.makeDate <f> Takes a date, number or string, returns a date
|
|||
@*/
|
||||
Ox.makeDate = function(date) {
|
||||
// Safari 4/5 does not parse YYYY, YYYY-MM or YYYY-MM-DD as date
|
||||
if (Ox.isString(date) && $.browser.safari && $.browser.version <= '534.59.10') {
|
||||
if ($.browser.safari && $.browser.version <= '534.59.10' && Ox.isString(date)) {
|
||||
if (/^\d{4}$/.test(date)) {
|
||||
date += '-01-01';
|
||||
} else if (/^\d{4}-\d{2}$/.test(date)) {
|
||||
|
|
Loading…
Reference in a new issue