remove reference to jQuery in Ox.makeDate
This commit is contained in:
parent
00b2bafbbd
commit
41c43332c2
1 changed files with 2 additions and 2 deletions
|
@ -253,8 +253,8 @@ Ox.makeDate <f> Takes a date, number or string, returns a date
|
|||
'1970-05'
|
||||
@*/
|
||||
Ox.makeDate = function(date) {
|
||||
// Safari 4/5 does not parse YYYY, YYYY-MM or YYYY-MM-DD as date
|
||||
if ($.browser.safari && $.browser.version <= '534.59.10' && Ox.isString(date)) {
|
||||
// Safari 4/5 (<= 534.59.10) doesn't parse YYYY, YYYY-MM or YYYY-MM-DD
|
||||
if (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