From: Xotic750 Date: Sat, 14 Sep 2013 23:04:36 +0000 (+0200) Subject: Added feature to expose normalizeUnits X-Git-Tag: 2.3.0~43^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72a0d141df65f0f31f62867908575678db8e83bc;p=thirdparty%2Fmoment.git Added feature to expose normalizeUnits --- diff --git a/moment.js b/moment.js index 3a5ebd2fe..69119a024 100644 --- a/moment.js +++ b/moment.js @@ -1203,6 +1203,11 @@ 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