Skip to content

Commit aea66a8

Browse files
committed
Export momentProperties for plugins
1 parent 40df767 commit aea66a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

moment.js

+4
Original file line numberDiff line numberDiff line change
@@ -1704,6 +1704,10 @@
17041704
// default format
17051705
moment.defaultFormat = isoFormat;
17061706

1707+
// Plugins that add properties should also add the key here (null value),
1708+
// so we can properly clone ourselves.
1709+
moment.momentProperties = momentProperties;
1710+
17071711
// This function will be called whenever a moment is mutated.
17081712
// It is intended to keep the offset in sync with the timezone.
17091713
moment.updateOffset = function () {};

0 commit comments

Comments
 (0)