From: joseph janiga Date: Sat, 4 Feb 2017 16:00:25 +0000 (-0500) Subject: fixed comment per request X-Git-Tag: 2.18.0~39^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=195d8dd0dc9de6007934926b43c22db5c18a11f5;p=thirdparty%2Fmoment.git fixed comment per request --- diff --git a/src/lib/moment/calendar.js b/src/lib/moment/calendar.js index 1e4264a2e..0046a49a4 100644 --- a/src/lib/moment/calendar.js +++ b/src/lib/moment/calendar.js @@ -15,8 +15,7 @@ export function getCalendarFormat(myMoment, now) { } export function calendar (time, formats) { - // #3658 - Adding overload to the calendar function in order to allow: - // calendar(FORMATS) a single parameter, formats only function call + // Support for single parameter, formats only overload to the calendar function if (arguments.length === 1 && typeof time === 'object' && !isMoment(time)) { formats = arguments[0]; time = undefined;