diff options
author | Mario <mario@mariovavti.com> | 2020-06-15 08:19:13 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-06-15 08:19:13 +0000 |
commit | 56ec55110a27a13cc2c7d1fb09f1650f8c4cd842 (patch) | |
tree | 1ed6199b0d09b232b3ba5dce28a0a0134242df55 /library/fullcalendar/packages/moment/main.js | |
parent | 570497071d7dc231be6ab0eee951c22f1ad05df2 (diff) | |
download | volse-hubzilla-56ec55110a27a13cc2c7d1fb09f1650f8c4cd842.tar.gz volse-hubzilla-56ec55110a27a13cc2c7d1fb09f1650f8c4cd842.tar.bz2 volse-hubzilla-56ec55110a27a13cc2c7d1fb09f1650f8c4cd842.zip |
update fullcalendar to version 4.4.2
Diffstat (limited to 'library/fullcalendar/packages/moment/main.js')
-rw-r--r-- | library/fullcalendar/packages/moment/main.js | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/library/fullcalendar/packages/moment/main.js b/library/fullcalendar/packages/moment/main.js index ca94518a4..794bee900 100644 --- a/library/fullcalendar/packages/moment/main.js +++ b/library/fullcalendar/packages/moment/main.js @@ -1,16 +1,16 @@ /*! -FullCalendar Moment Plugin v4.0.2 +FullCalendar Moment Plugin v4.4.2 Docs & License: https://fullcalendar.io/ (c) 2019 Adam Shaw */ + (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('moment'), require('@fullcalendar/core')) : typeof define === 'function' && define.amd ? define(['exports', 'moment', '@fullcalendar/core'], factory) : (global = global || self, factory(global.FullCalendarMoment = {}, global.moment, global.FullCalendar)); -}(this, function (exports, moment, core) { 'use strict'; - - moment = moment && moment.hasOwnProperty('default') ? moment['default'] : moment; +}(this, function (exports, momentNs, core) { 'use strict'; + var moment = momentNs; // the directly callable function function toMoment(date, calendar) { if (!(calendar instanceof core.Calendar)) { throw new Error('must supply a Calendar instance'); @@ -18,7 +18,7 @@ Docs & License: https://fullcalendar.io/ return convertToMoment(date, calendar.dateEnv.timeZone, null, calendar.dateEnv.locale.codes[0]); } function toDuration(fcDuration) { - return moment.duration(fcDuration); // momment accepts all the props that fc.Duration already has! + return moment.duration(fcDuration); // moment accepts all the props that fc.Duration already has! } function formatWithCmdStr(cmdStr, arg) { var cmd = parseCmdStr(cmdStr); @@ -91,7 +91,14 @@ Docs & License: https://fullcalendar.io/ startTail; } } - return formatStart(cmd.whole) + separator + formatEnd(cmd.whole); + var startWhole = formatStart(cmd.whole); + var endWhole = formatEnd(cmd.whole); + if (startWhole === endWhole) { + return startWhole; + } + else { + return startWhole + separator + endWhole; + } } exports.default = main; |