| 4353 | } |
| 4354 | |
| 4355 | function list (format, index, field, count, setter) { |
| 4356 | if (typeof format === 'number') { |
| 4357 | index = format; |
| 4358 | format = undefined; |
| 4359 | } |
| 4360 | |
| 4361 | format = format || ''; |
| 4362 | |
| 4363 | if (index != null) { |
| 4364 | return lists__get(format, index, field, setter); |
| 4365 | } |
| 4366 | |
| 4367 | var i; |
| 4368 | var out = []; |
| 4369 | for (i = 0; i < count; i++) { |
| 4370 | out[i] = lists__get(format, i, field, setter); |
| 4371 | } |
| 4372 | return out; |
| 4373 | } |
| 4374 | |
| 4375 | function lists__listMonths (format, index) { |
| 4376 | return list(format, index, 'months', 12, 'month'); |