]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
fixed comment per request
authorjoseph janiga <josephjaniga@gmail.com>
Sat, 4 Feb 2017 16:00:25 +0000 (11:00 -0500)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 2 Mar 2017 09:16:03 +0000 (11:16 +0200)
src/lib/moment/calendar.js

index 1e4264a2e14cf425c4cefdc04d21ae8e3cea8483..0046a49a4a0d8cea362d918fa645d97eda20d748 100644 (file)
@@ -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;