remove reference to jQuery in Ox.makeDate

This commit is contained in:
rolux 2014-08-05 02:28:12 +02:00
parent 00b2bafbbd
commit 41c43332c2

View file

@ -253,8 +253,8 @@ Ox.makeDate <f> Takes a date, number or string, returns a date
'1970-05' '1970-05'
@*/ @*/
Ox.makeDate = function(date) { Ox.makeDate = function(date) {
// Safari 4/5 does not parse YYYY, YYYY-MM or YYYY-MM-DD as date // Safari 4/5 (<= 534.59.10) doesn't parse YYYY, YYYY-MM or YYYY-MM-DD
if ($.browser.safari && $.browser.version <= '534.59.10' && Ox.isString(date)) { if (Ox.isString(date)) {
if (/^\d{4}$/.test(date)) { if (/^\d{4}$/.test(date)) {
date += '-01-01'; date += '-01-01';
} else if (/^\d{4}-\d{2}$/.test(date)) { } else if (/^\d{4}-\d{2}$/.test(date)) {