fix use of Ox.map, Ox.loop
This commit is contained in:
parent
9a7e86dceb
commit
f97352ee61
6 changed files with 10 additions and 10 deletions
|
|
@ -71,7 +71,7 @@ Ox.getDaysInMonth <f> Get the number of days in a given month
|
|||
Ox.getDaysInMonth = function(year, month) {
|
||||
year = Ox.makeYear(year);
|
||||
month = Ox.isNumber(month) ? month
|
||||
: Ox.getIndexOf(Ox.MONTHS, function(v) {
|
||||
: Ox.indexOf(Ox.MONTHS, function(v) {
|
||||
return v.substr(0, 3) == month.substr(0, 3);
|
||||
}) + 1;
|
||||
return new Date(year, month, 0).getDate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue