]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Export momentProperties for plugins
authorIskren Chernev <iskren.chernev@gmail.com>
Tue, 25 Mar 2014 07:53:40 +0000 (00:53 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Tue, 25 Mar 2014 07:53:40 +0000 (00:53 -0700)
moment.js

index 0018faebf9fc17fe0486978732e7e5a4ed5197ce..b059e0a8230210dbeb68efebb8acdcc6a30ea5c9 100644 (file)
--- a/moment.js
+++ b/moment.js
     // default format
     moment.defaultFormat = isoFormat;
 
+    // Plugins that add properties should also add the key here (null value),
+    // so we can properly clone ourselves.
+    moment.momentProperties = momentProperties;
+
     // This function will be called whenever a moment is mutated.
     // It is intended to keep the offset in sync with the timezone.
     moment.updateOffset = function () {};