diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-11-18 23:56:25 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-11-18 23:56:25 +0100 |
commit | b23284cba28335f61595f2264685b1bbafc19183 (patch) | |
tree | 696cbfc2b5a609c636e0d1d7a3a2f9ad7a302266 /library/moment/src/lib/locale/lists.js | |
parent | 0c163c4d038a4c26335af1bde366d8ef9e53c464 (diff) | |
download | volse-hubzilla-b23284cba28335f61595f2264685b1bbafc19183.tar.gz volse-hubzilla-b23284cba28335f61595f2264685b1bbafc19183.tar.bz2 volse-hubzilla-b23284cba28335f61595f2264685b1bbafc19183.zip |
move moment.min.js and remove unneeded files
Diffstat (limited to 'library/moment/src/lib/locale/lists.js')
-rw-r--r-- | library/moment/src/lib/locale/lists.js | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/library/moment/src/lib/locale/lists.js b/library/moment/src/lib/locale/lists.js deleted file mode 100644 index ea0161ab9..000000000 --- a/library/moment/src/lib/locale/lists.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getLocale } from './locales'; -import { createUTC } from '../create/utc'; - -function get (format, index, field, setter) { - var locale = getLocale(); - var utc = createUTC().set(setter, index); - return locale[field](utc, format); -} - -function list (format, index, field, count, setter) { - if (typeof format === 'number') { - index = format; - format = undefined; - } - - format = format || ''; - - if (index != null) { - return get(format, index, field, setter); - } - - var i; - var out = []; - for (i = 0; i < count; i++) { - out[i] = get(format, i, field, setter); - } - return out; -} - -export function listMonths (format, index) { - return list(format, index, 'months', 12, 'month'); -} - -export function listMonthsShort (format, index) { - return list(format, index, 'monthsShort', 12, 'month'); -} - -export function listWeekdays (format, index) { - return list(format, index, 'weekdays', 7, 'day'); -} - -export function listWeekdaysShort (format, index) { - return list(format, index, 'weekdaysShort', 7, 'day'); -} - -export function listWeekdaysMin (format, index) { - return list(format, index, 'weekdaysMin', 7, 'day'); -} |