From: Isaac Cambron Date: Tue, 6 Aug 2013 07:32:59 +0000 (-0400) Subject: removing extra s in get() and set() X-Git-Tag: 2.2.0~32^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F978%2Fhead;p=thirdparty%2Fmoment.git removing extra s in get() and set() --- diff --git a/moment.js b/moment.js index bdf3c0d47..23b74dc57 100644 --- a/moment.js +++ b/moment.js @@ -1508,12 +1508,12 @@ get : function (units) { units = normalizeUnits(units); - return this[units.toLowerCase() + 's'](); + return this[units.toLowerCase()](); }, set : function (units, value) { units = normalizeUnits(units); - this[units.toLowerCase() + 's'](value); + this[units.toLowerCase()](value); }, // If passed a language key, it will set the language for this