fix doc comments

This commit is contained in:
rolux 2015-04-15 20:05:33 +01:00
parent c6edce6446
commit 3453fb02b1

View file

@ -241,13 +241,13 @@ Ox.isInt = function(value) {
return isFinite(value) && value === Math.floor(value);
};
/*
/*@
Ox.isInvalidDate <f> Tests if a value is an invalid date
(value) -> <b> True if the value is an invalid date
value <*> Any value
> Ox.isInvalidDate(new Date('foo'))
true
*/
@*/
Ox.isInvalidDate = function(value) {
return Ox.isDate(value) && Ox.isNaN(value.getTime());
};
@ -382,13 +382,13 @@ Ox.isUndefined = function(value) {
return Ox.typeOf(value) == 'undefined';
};
/*
/*@
Ox.isValidDate <f> Tests if a value is a valid date
(value) -> <b> True if the value is a valid date
value <*> Any value
> Ox.isValidDate(new Date())
true
*/
@*/
Ox.isValidDate = function(value) {
return Ox.isDate(value) && !Ox.isNaN(value.getTime());
};