]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Added feature to expose normalizeUnits
authorXotic750 <xotic750@gmail.com>
Sat, 14 Sep 2013 23:04:36 +0000 (01:04 +0200)
committerXotic750 <xotic750@gmail.com>
Sat, 14 Sep 2013 23:04:36 +0000 (01:04 +0200)
moment.js

index 3a5ebd2fe711efb3cc37fa0fa5d6364a6a74e25e..69119a0249639c249528d291d5013aceb57115ce 100644 (file)
--- a/moment.js
+++ b/moment.js
         return obj instanceof Duration;
     };
 
+    // for use by developers when extending the library
+    // https://github.com/moment/moment/issues/1066
+    moment.normalizeUnits = function (units) {
+        return normalizeUnits(units);
+    };
 
     /************************************
         Moment Prototype